Skip to content

Commit c055ac5

Browse files
committed
Re-enable test cases and move ignore from test suites to test classes
Some test suite of org.eclipse.ui.tests are currently disabled/ignored. This will be impossible when migrating to JUnit 5. This change pushes down the ignore to either the included test classes or just some of the test methods of other methods of those test classes work fine. Thus, this also re-enables some tests that actually run fine.
1 parent 87e4603 commit c055ac5

25 files changed

+86
-48
lines changed

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/AcceleratorConfigurationsExtensionDynamicTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.eclipse.core.commands.common.NotDefinedException;
2121
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
2222
import org.eclipse.ui.keys.IBindingService;
23+
import org.junit.Ignore;
2324
import org.junit.Test;
2425

2526
/**
@@ -28,6 +29,7 @@
2829
*
2930
* @since 3.1.1
3031
*/
32+
@Ignore("Bug 405296")
3133
public final class AcceleratorConfigurationsExtensionDynamicTest extends
3234
DynamicTestCase {
3335

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/AcceleratorScopesExtensionDynamicTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.eclipse.core.commands.common.NotDefinedException;
2121
import org.eclipse.ui.contexts.IContextService;
2222
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
23+
import org.junit.Ignore;
2324
import org.junit.Test;
2425

2526
/**
@@ -28,6 +29,7 @@
2829
*
2930
* @since 3.1.1
3031
*/
32+
@Ignore("Bug 405296")
3133
public final class AcceleratorScopesExtensionDynamicTest extends
3234
DynamicTestCase {
3335

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ActionDefinitionsExtensionDynamicTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.eclipse.core.commands.common.NotDefinedException;
2121
import org.eclipse.ui.commands.ICommandService;
2222
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
23+
import org.junit.Ignore;
2324
import org.junit.Test;
2425

2526
/**
@@ -28,6 +29,7 @@
2829
*
2930
* @since 3.1.1
3031
*/
32+
@Ignore("Bug 405296")
3133
public final class ActionDefinitionsExtensionDynamicTest extends
3234
DynamicTestCase {
3335

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ActionSetTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@
3737
import org.eclipse.ui.internal.registry.ActionSetRegistry;
3838
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
3939
import org.eclipse.ui.tests.leaks.LeakTests;
40+
import org.junit.Ignore;
4041
import org.junit.Test;
4142

4243
/**
4344
* Tests to ensure the addition of new action sets with dynamic plug-ins.
4445
*/
45-
46+
@Ignore("Bug 405296")
4647
public class ActionSetTests extends DynamicTestCase {
4748

4849
private static final String ACTION_SET_ID = "org.eclipse.newActionSet1.newActionSet1";

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ActivitySupportTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.eclipse.ui.activities.ICategory;
2424
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
2525
import org.eclipse.ui.tests.harness.util.ImageTests;
26+
import org.junit.Ignore;
2627
import org.junit.Test;
2728

2829
public class ActivitySupportTests extends DynamicTestCase {
@@ -43,6 +44,7 @@ protected String getInstallLocation() {
4344
}
4445

4546
@Test
47+
@Ignore("Bug 405296")
4648
public void testActivityImages() {
4749
IActivity baselineActivity = getWorkbench().getActivitySupport()
4850
.getActivityManager().getActivity("someBogusActivityId");

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/BindingsExtensionDynamicTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.eclipse.ui.IWorkbenchCommandConstants;
2727
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
2828
import org.eclipse.ui.keys.IBindingService;
29+
import org.junit.Ignore;
2930
import org.junit.Test;
3031

3132
/**
@@ -34,6 +35,7 @@
3435
*
3536
* @since 3.1.1
3637
*/
38+
@Ignore("Bug 405296")
3739
public final class BindingsExtensionDynamicTest extends DynamicTestCase {
3840

3941
/**

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/CommandsExtensionDynamicTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.eclipse.ui.handlers.IHandlerService;
3434
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
3535
import org.eclipse.ui.keys.IBindingService;
36+
import org.junit.Ignore;
3637
import org.junit.Test;
3738

3839
/**
@@ -41,6 +42,7 @@
4142
*
4243
* @since 3.1.1
4344
*/
45+
@Ignore("Bug 405296")
4446
public final class CommandsExtensionDynamicTest extends DynamicTestCase {
4547

4648
/**

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ContextsExtensionDynamicTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.eclipse.core.commands.common.NotDefinedException;
2121
import org.eclipse.ui.contexts.IContextService;
2222
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
23+
import org.junit.Ignore;
2324
import org.junit.Test;
2425

2526
/**
@@ -28,6 +29,7 @@
2829
*
2930
* @since 3.1.1
3031
*/
32+
@Ignore("Bug 405296")
3133
public final class ContextsExtensionDynamicTest extends DynamicTestCase {
3234

3335
/**

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/DynamicContributionTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@
2424
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
2525
import org.eclipse.ui.internal.util.BundleUtility;
2626
import org.eclipse.ui.menus.IMenuService;
27+
import org.junit.Ignore;
2728
import org.junit.Test;
2829

2930
/**
3031
* @since 3.5
3132
*/
33+
@Ignore("Bug 405296")
3234
public class DynamicContributionTest extends DynamicTestCase {
3335

3436
@Test

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/DynamicInvalidContributionTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818

1919
import org.eclipse.ui.IWorkbenchWindow;
2020
import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
21+
import org.junit.Ignore;
2122
import org.junit.Test;
2223

2324
/**
2425
* @since 3.5
2526
*/
27+
@Ignore("Bug 405296")
2628
public class DynamicInvalidContributionTest extends DynamicTestCase {
2729

2830
@Test

0 commit comments

Comments
 (0)