Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-08-26 12:56:02 +0000
committerDJ Houghton2010-08-26 12:56:02 +0000
commit8c91ab7a6145a1176d8f593f209369a559aba8a9 (patch)
treeb3d00dc7b4109806a9f5dd846fab7b340d64d50d /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher
parentcd254bc15261f58490302ec42031775abc7f593f (diff)
downloadrt.equinox.p2-8c91ab7a6145a1176d8f593f209369a559aba8a9.tar.gz
rt.equinox.p2-8c91ab7a6145a1176d8f593f209369a559aba8a9.tar.xz
rt.equinox.p2-8c91ab7a6145a1176d8f593f209369a559aba8a9.zip
Bug 244628 - [api] [repository] artifact repos do not support bulk remove
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.java10
1 files changed, 10 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 7b1ae7bea..6b50cf744 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
@@ -209,6 +209,16 @@ public class TestArtifactRepository implements IArtifactRepository {
}
}
+ public void removeDescriptors(IArtifactDescriptor[] descriptors) {
+ for (IArtifactDescriptor descriptor : descriptors)
+ removeDescriptor(descriptor);
+ }
+
+ public void removeDescriptors(IArtifactKey[] keys) {
+ for (IArtifactKey key : keys)
+ removeDescriptor(key);
+ }
+
public String getDescription() {
return description;
}

Back to the top