Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2010-01-23 17:16:19 +0000
committerSusan Franklin2010-01-23 17:16:19 +0000
commit12fc4cb483a4fbcd234e70a263eb0af4d84fdc84 (patch)
tree3b32ea9b5971e423ce734b68908e4852073331da /bundles/org.eclipse.equinox.p2.tests.ui/src
parentdb1bbc0f377a95638d858e1eb6cd596c66c0ab87 (diff)
downloadrt.equinox.p2-12fc4cb483a4fbcd234e70a263eb0af4d84fdc84.tar.gz
rt.equinox.p2-12fc4cb483a4fbcd234e70a263eb0af4d84fdc84.tar.xz
rt.equinox.p2-12fc4cb483a4fbcd234e70a263eb0af4d84fdc84.zip
regression test for Bug 300445 - [ui] Can't update from I20100119-0800 - include test for second resolve
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests.ui/src')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/planning/UpdatePlanning.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/planning/UpdatePlanning.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/planning/UpdatePlanning.java
index e723ddf1e..7e4260c42 100644
--- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/planning/UpdatePlanning.java
+++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/planning/UpdatePlanning.java
@@ -162,9 +162,11 @@ public class UpdatePlanning extends AbstractProvisioningUITest {
UpdateOperation op = getProvisioningUI().getUpdateOperation(new IInstallableUnit[] {a1, b1}, null);
op.resolveModal(getMonitor());
Update[] updates = op.getSelectedUpdates();
- assertTrue("1.0", updates.length == 2);
+ assertEquals("1.0", 2, updates.length);
// choose just one
op.setSelectedUpdates(new Update[] {updates[0]});
op.resolveModal(getMonitor());
+ assertEquals("1.1", 1, op.getSelectedUpdates().length);
+
}
}

Back to the top