Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2010-01-23 11:27:27 -0500
committerSusan Franklin2010-01-23 11:27:27 -0500
commitbc3ce087cea1293e57fd36a263013bcf3bbcd928 (patch)
tree5f1692249bb59894aed4c39c12bee532c2510dc9 /bundles/org.eclipse.equinox.p2.tests.ui
parent90af1c0c2ed649eed074316dc5c1d55d4bc9ffcd (diff)
downloadrt.equinox.p2-bc3ce087cea1293e57fd36a263013bcf3bbcd928.tar.gz
rt.equinox.p2-bc3ce087cea1293e57fd36a263013bcf3bbcd928.tar.xz
rt.equinox.p2-bc3ce087cea1293e57fd36a263013bcf3bbcd928.zip
Bug 300240 - [ui] Not all versions of updates are shown
Bug 300445 - [ui] Can't update from I20100119-0800
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests.ui')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/dialogs/UpdateWizardTest.java41
1 files changed, 4 insertions, 37 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/dialogs/UpdateWizardTest.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/dialogs/UpdateWizardTest.java
index e7a51619c..b8eba8582 100644
--- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/dialogs/UpdateWizardTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/dialogs/UpdateWizardTest.java
@@ -10,21 +10,14 @@
*******************************************************************************/
package org.eclipse.equinox.p2.tests.ui.dialogs;
-import org.eclipse.equinox.p2.metadata.Version;
-import org.eclipse.equinox.p2.metadata.VersionRange;
-
-import org.eclipse.equinox.p2.metadata.IProvidedCapability;
-import org.eclipse.equinox.p2.metadata.IUpdateDescriptor;
-
-import org.eclipse.equinox.p2.metadata.ILicense;
-
import org.eclipse.equinox.internal.p2.metadata.License;
import org.eclipse.equinox.internal.p2.ui.ProvUI;
import org.eclipse.equinox.internal.p2.ui.dialogs.*;
-import org.eclipse.equinox.internal.provisional.p2.metadata.*;
+import org.eclipse.equinox.internal.provisional.p2.metadata.MetadataFactory;
import org.eclipse.equinox.internal.provisional.p2.metadata.MetadataFactory.InstallableUnitDescription;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.operations.*;
+import org.eclipse.equinox.p2.metadata.*;
+import org.eclipse.equinox.p2.operations.ProfileModificationJob;
+import org.eclipse.equinox.p2.operations.UpdateOperation;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jface.wizard.WizardDialog;
@@ -172,32 +165,6 @@ public class UpdateWizardTest extends WizardTest {
}
/**
- * Tests the wizard without a prior resolution being done.
- * This is not the SDK workflow, but should be supported.
- */
- public void testUpdateWizardUnresolved() {
- Update update = new Update(main, mainUpgrade1);
- UpdateOperation op = getProvisioningUI().getUpdateOperation(new IInstallableUnit[] {main}, null);
- UpdateWizard wizard = new UpdateWizard(getProvisioningUI(), op, new Object[] {update}, null);
- WizardDialog dialog = new ProvisioningWizardDialog(ProvUI.getDefaultParentShell(), wizard);
- dialog.setBlockOnOpen(false);
- dialog.open();
-
- try {
- SelectableIUsPage page1 = (SelectableIUsPage) wizard.getPage(SELECTION_PAGE);
- // Page 1 should have selections
- assertTrue(page1.isPageComplete());
- // Should be able to resolve an unresolved operation
- wizard.recomputePlan(dialog);
- // Everything is still good
- assertTrue(page1.isPageComplete());
-
- } finally {
- dialog.getShell().close();
- }
- }
-
- /**
* Tests the wizard when multiple versions are available.
*/
public void testBug277554MultipleVersions() {

Back to the top