Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-12-17 09:07:05 -0500
committerPascal Rapicault2010-12-17 09:07:05 -0500
commit14ca1b3f2a22e8c6bdc263582d325d649ab499ec (patch)
tree5658b1030e4b67f49bc5d8e152b64149fb28ba21
parent58fc582de8d471a3759198ca79b9987f51703ab8 (diff)
downloadrt.equinox.p2-14ca1b3f2a22e8c6bdc263582d325d649ab499ec.tar.gz
rt.equinox.p2-14ca1b3f2a22e8c6bdc263582d325d649ab499ec.tar.xz
rt.equinox.p2-14ca1b3f2a22e8c6bdc263582d325d649ab499ec.zip
Add test for 0 operands
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NoUnecessaryIUProperty.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NoUnecessaryIUProperty.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NoUnecessaryIUProperty.java
index fd8320771..0eccc26bd 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NoUnecessaryIUProperty.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NoUnecessaryIUProperty.java
@@ -46,4 +46,12 @@ public class NoUnecessaryIUProperty extends AbstractProvisioningTest {
assertEquals(2, ((ProvisioningPlan) plan).getOperands().length);
}
+
+ public void testZeroOperands() {
+ IProfileChangeRequest pcr = planner.createChangeRequest(profile1);
+ pcr.setInstallableUnitProfileProperty(iuB, "theKey", "theValue"); // Try to set a property on an IU that does not end up in plan
+ IProvisioningPlan plan = planner.getProvisioningPlan(pcr, null, new NullProgressMonitor());
+ assertEquals(0, ((ProvisioningPlan) plan).getOperands().length);
+
+ }
}

Back to the top