Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2010-09-02 17:16:59 -0400
committerSusan Franklin2010-09-02 17:16:59 -0400
commitbc9ccb48d23eb62ed13e7de5f42328fdd68fb9a1 (patch)
treea3fa74d08902e2ef1b40c81ae5c519d3f8d1f216 /bundles/org.eclipse.equinox.p2.tests.ui
parent643b5a7d0a1402deebb46c5dc91d054e76261131 (diff)
downloadrt.equinox.p2-bc9ccb48d23eb62ed13e7de5f42328fdd68fb9a1.tar.gz
rt.equinox.p2-bc9ccb48d23eb62ed13e7de5f42328fdd68fb9a1.tar.xz
rt.equinox.p2-bc9ccb48d23eb62ed13e7de5f42328fdd68fb9a1.zip
Bug 320613 - [ui] [admin] - problem installing with vague error message
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/actions/AllTests.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/InstallActionTest.java83
2 files changed, 0 insertions, 84 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/AllTests.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/AllTests.java
index f96bc729c..ecb8f5727 100644
--- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/AllTests.java
+++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/AllTests.java
@@ -20,7 +20,6 @@ public class AllTests extends TestCase {
public static Test suite() {
TestSuite suite = new TestSuite(AllTests.class.getName());
suite.addTestSuite(UninstallActionTest.class);
- suite.addTestSuite(InstallActionTest.class);
suite.addTestSuite(UpdateActionTest.class);
suite.addTestSuite(RemoveColocatedRepositoryActionTest.class);
suite.addTestSuite(ElementUtilsTest.class);
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/InstallActionTest.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/InstallActionTest.java
deleted file mode 100644
index 0091e6ae4..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/InstallActionTest.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2009 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.equinox.p2.tests.ui.actions;
-
-import java.util.List;
-import org.eclipse.equinox.internal.p2.ui.actions.InstallAction;
-import org.eclipse.equinox.internal.p2.ui.model.AvailableIUElement;
-import org.eclipse.equinox.internal.p2.ui.model.IIUElement;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-
-/**
- * @since 3.5
- *
- */
-public class InstallActionTest extends ProfileModificationActionTest {
-
- class TestInstallAction extends InstallAction {
- TestInstallAction(Object[] sel) {
- super(InstallActionTest.this.getProvisioningUI(), InstallActionTest.this.getSelectionProvider(sel), profile.getProfileId());
- }
-
- public List<IInstallableUnit> getSelectedIUs() {
- return super.getSelectedIUs();
- }
- }
-
- public void testEmptySelection() {
- TestInstallAction action = new TestInstallAction(getEmptySelection());
- assertFalse("Should not be enabled with empty selection", action.isEnabled());
- assertEquals(0, action.getSelectedIUs().size());
- }
-
- public void testIUs() {
- TestInstallAction action = new TestInstallAction(getTopLevelIUs());
- assertTrue("Should be enabled", action.isEnabled());
- assertEquals(2, action.getSelectedIUs().size());
- }
-
- public void testElements() {
- TestInstallAction action = new TestInstallAction(getTopLevelIUElements());
- assertTrue("Should be enabled", action.isEnabled());
- assertEquals(2, action.getSelectedIUs().size());
- }
-
- public void testMixedIUsAndNonIUs() {
- TestInstallAction action = new TestInstallAction(getMixedIUsAndNonIUs());
- assertTrue("Mixed selections allowed", action.isEnabled());
- assertEquals(2, action.getSelectedIUs().size());
- }
-
- public void testMixedIUsAndElements() {
- TestInstallAction action = new TestInstallAction(getMixedIUsAndElements());
- assertTrue("Should be enabled", action.isEnabled());
- assertEquals(2, action.getSelectedIUs().size());
- }
-
- public void testParentIsCategory() {
- TestInstallAction action = new TestInstallAction(getCategoryAndChildIUElements());
- assertTrue("Should be enabled", action.isEnabled());
- // Only the non-category should be considered a selection
- assertEquals(1, action.getSelectedIUs().size());
- }
-
- public void testParentIsNestedCategory() {
- TestInstallAction action = new TestInstallAction(getNestedCategoriesAndChildIUElements());
- assertTrue("Should be enabled", action.isEnabled());
- // Only the non-category should be considered a selection
- assertEquals(1, action.getSelectedIUs().size());
- }
-
- protected IIUElement element(IInstallableUnit iu) {
- return new AvailableIUElement(null, iu, profile.getProfileId(), true);
- }
-}

Back to the top