Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2011-01-20 21:26:55 -0500
committerPascal Rapicault2011-01-20 21:26:55 -0500
commit50923bb36fe635fe4e689956a168c787eb669b93 (patch)
treec222006c1327f12a1f886cd30137513e6ec4642c
parent857e7f964933c3917e2bcc02a4645555584380d4 (diff)
downloadrt.equinox.p2-50923bb36fe635fe4e689956a168c787eb669b93.tar.gz
rt.equinox.p2-50923bb36fe635fe4e689956a168c787eb669b93.tar.xz
rt.equinox.p2-50923bb36fe635fe4e689956a168c787eb669b93.zip
Use API in the test
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NegationTesting.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NegationTesting.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NegationTesting.java
index 37d840854..9a2f6a6b0 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NegationTesting.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NegationTesting.java
@@ -1,11 +1,10 @@
package org.eclipse.equinox.p2.tests.planner;
-import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest;
-
import java.util.ArrayList;
import java.util.Collection;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.internal.p2.core.helpers.CollectionUtils;
+import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest;
import org.eclipse.equinox.internal.p2.director.Slicer;
import org.eclipse.equinox.internal.p2.engine.ProvisioningPlan;
import org.eclipse.equinox.internal.p2.metadata.ProvidedCapability;
@@ -329,7 +328,7 @@ public class NegationTesting extends AbstractProvisioningTest {
IProfileChangeRequest request = planner.createChangeRequest(profile);
request.add(iu);
- RequiredCapability req1 = new RequiredCapability(IInstallableUnit.NAMESPACE_IU_ID, iu.getId(), new VersionRange(iu.getVersion(), true, iu.getVersion(), true), null, 0, 0, false, null);
+ IRequirement req1 = MetadataFactory.createRequirement(IInstallableUnit.NAMESPACE_IU_ID, iu.getId(), new VersionRange(iu.getVersion(), true, iu.getVersion(), true), null, 0, 0, false, null);
ArrayList<IRequirement> reqs = new ArrayList();
reqs.add(req1);
request.addExtraRequirements(reqs);

Back to the top