Skip to content

Commit 895ca2e

Browse files
vogellaakurtakov
authored andcommitted
Migrate org.eclipse.ltk.core.refactoring.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 2b482fa commit 895ca2e

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

tests/org.eclipse.ltk.core.refactoring.tests/META-INF/MANIFEST.MF

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Automatic-Module-Name: org.eclipse.ltk.core.refactoring.tests
33
Bundle-ManifestVersion: 2
44
Bundle-Name: %pluginName
55
Bundle-SymbolicName: org.eclipse.ltk.core.refactoring.tests; singleton:=true
6-
Bundle-Version: 3.10.600.qualifier
6+
Bundle-Version: 3.10.700.qualifier
77
Bundle-Activator: org.eclipse.ltk.core.refactoring.tests.RefactoringCoreTestPlugin
88
Bundle-ActivationPolicy: lazy
99
Bundle-Vendor: %providerName
@@ -26,4 +26,5 @@ Require-Bundle:
2626
org.eclipse.core.tests.harness
2727
Bundle-RequiredExecutionEnvironment: JavaSE-17
2828
Eclipse-BundleShape: dir
29-
Import-Package: org.junit.jupiter.api
29+
Import-Package: org.junit.jupiter.api,
30+
org.junit.platform.suite.api

tests/org.eclipse.ltk.core.refactoring.tests/src/org/eclipse/ltk/core/refactoring/tests/AllTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
*******************************************************************************/
1414
package org.eclipse.ltk.core.refactoring.tests;
1515

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

1919
import org.eclipse.ltk.core.refactoring.tests.history.RefactoringHistoryTests;
2020
import org.eclipse.ltk.core.refactoring.tests.participants.ParticipantTests;
2121
import org.eclipse.ltk.core.refactoring.tests.resource.ResourceRefactoringTests;
2222
import org.eclipse.ltk.core.refactoring.tests.resource.ResourceRefactoringUndoTests;
2323
import org.eclipse.ltk.core.refactoring.tests.scripting.RefactoringScriptingTests;
2424

25-
@RunWith(Suite.class)
26-
@Suite.SuiteClasses({
25+
@Suite
26+
@SelectClasses({
2727
RefactoringContextTest.class,
2828
ParticipantTests.class,
2929
RefactoringHistoryTests.class,

tests/org.eclipse.ltk.core.refactoring.tests/src/org/eclipse/ltk/core/refactoring/tests/history/RefactoringHistoryTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
*******************************************************************************/
1414
package org.eclipse.ltk.core.refactoring.tests.history;
1515

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

19-
@RunWith(Suite.class)
20-
@Suite.SuiteClasses({
19+
@Suite
20+
@SelectClasses({
2121
RefactoringHistorySerializationTests.class,
2222
RefactoringHistoryServiceTests.class
2323
})

tests/org.eclipse.ltk.core.refactoring.tests/src/org/eclipse/ltk/core/refactoring/tests/participants/ParticipantTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
*******************************************************************************/
1414
package org.eclipse.ltk.core.refactoring.tests.participants;
1515

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

19-
@RunWith(Suite.class)
20-
@Suite.SuiteClasses({
19+
@Suite
20+
@SelectClasses({
2121
FailingParticipantTests.class,
2222
SharedTextChangeTests.class,
2323
CancelingParticipantTests.class,

tests/org.eclipse.ltk.core.refactoring.tests/src/org/eclipse/ltk/core/refactoring/tests/scripting/RefactoringScriptingTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
*******************************************************************************/
1414
package org.eclipse.ltk.core.refactoring.tests.scripting;
1515

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

19-
@RunWith(Suite.class)
20-
@Suite.SuiteClasses({
19+
@Suite
20+
@SelectClasses({
2121
RefactoringScriptApplicationTests.class
2222
})
2323
public class RefactoringScriptingTests {

0 commit comments

Comments
 (0)