Skip to content

Commit 8bdcda4

Browse files
vogellaakurtakov
authored andcommitted
Migrate org.eclipse.ui.monitoring.tests from JUnit4 to JUnit5
- Convert @RunWith(Suite.class) to @suite - Convert @Suite.SuiteClasses to @SelectClasses - Update imports from org.junit.runners to org.junit.platform.suite.api - Add org.junit.jupiter.api and org.junit.platform.suite.api to Import-Package
1 parent c051ca3 commit 8bdcda4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/org.eclipse.ui.monitoring.tests/META-INF/MANIFEST.MF

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %Bundle-Name
4+
Import-Package: org.junit.jupiter.api,
5+
org.junit.platform.suite.api
46
Bundle-RequiredExecutionEnvironment: JavaSE-17
57
Bundle-SymbolicName: org.eclipse.ui.monitoring.tests;singleton:=true
68
Bundle-Vendor: %Bundle-Vendor

tests/org.eclipse.ui.monitoring.tests/src/org/eclipse/ui/internal/monitoring/MonitoringTestSuite.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
*******************************************************************************/
1515
package org.eclipse.ui.internal.monitoring;
1616

17-
import org.junit.runner.RunWith;
18-
import org.junit.runners.Suite;
17+
import org.junit.platform.suite.api.SelectClasses;
18+
import org.junit.platform.suite.api.Suite;
1919

2020
/**
2121
* Test suite for {@code org.eclipse.ui.monitoring} plug-in.
2222
* The tests in {@link EventLoopMonitorThreadManualTests} are not included in this
2323
* suite due to their flakiness.
2424
*/
25-
@RunWith(Suite.class)
26-
@Suite.SuiteClasses({
25+
@Suite
26+
@SelectClasses({
2727
EventLoopMonitorThreadTests.class,
2828
FilterHandlerTests.class,
2929
DefaultLoggerTests.class})

0 commit comments

Comments
 (0)