Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2010-03-08 22:17:36 +0000
committerAndrew Niefer2010-03-08 22:17:36 +0000
commitf161eb55f9d01ffdcd4fda1b21a800a87f351a99 (patch)
treeb1f6e49c933f57448b57cad8f405378b5487c4c9 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher
parentd901bbc39b89d539c6d807ebc59c41e5ef8eb827 (diff)
downloadrt.equinox.p2-f161eb55f9d01ffdcd4fda1b21a800a87f351a99.tar.gz
rt.equinox.p2-f161eb55f9d01ffdcd4fda1b21a800a87f351a99.tar.xz
rt.equinox.p2-f161eb55f9d01ffdcd4fda1b21a800a87f351a99.zip
bug 305069 - IArtifactKey api
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/TestArtifactRepository.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/TestArtifactRepository.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/TestArtifactRepository.java
index 0e97e1009..d8012a631 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/TestArtifactRepository.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/TestArtifactRepository.java
@@ -17,11 +17,13 @@ import org.eclipse.core.runtime.*;
import org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRequest;
import org.eclipse.equinox.internal.p2.artifact.repository.Messages;
import org.eclipse.equinox.internal.p2.core.helpers.OrderedProperties;
+import org.eclipse.equinox.internal.p2.metadata.ArtifactKey;
import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStepHandler;
import org.eclipse.equinox.internal.provisional.p2.repository.IStateful;
import org.eclipse.equinox.p2.core.IProvisioningAgent;
import org.eclipse.equinox.p2.core.ProvisionException;
import org.eclipse.equinox.p2.metadata.IArtifactKey;
+import org.eclipse.equinox.p2.metadata.Version;
import org.eclipse.equinox.p2.query.*;
import org.eclipse.equinox.p2.repository.artifact.*;
import org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor;
@@ -298,6 +300,10 @@ public class TestArtifactRepository implements IArtifactRepository {
return new ArtifactDescriptor(key);
}
+ public IArtifactKey createArtifactKey(String classifier, String id, Version keyVersion) {
+ return new ArtifactKey(classifier, id, keyVersion);
+ }
+
public IQueryResult<IArtifactKey> query(IQuery<IArtifactKey> query, IProgressMonitor monitor) {
if (monitor != null && monitor.isCanceled())
return Collector.emptyCollector();

Back to the top