File tree Expand file tree Collapse file tree 3 files changed +6
-31
lines changed
it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it
test/java/org/apache/maven/plugin/compiler Expand file tree Collapse file tree 3 files changed +6
-31
lines changed Original file line number Diff line number Diff line change @@ -237,12 +237,6 @@ under the License.
237
237
<artifactId >junit-jupiter-api</artifactId >
238
238
<scope >test</scope >
239
239
</dependency >
240
- <dependency >
241
- <groupId >junit</groupId >
242
- <artifactId >junit</artifactId >
243
- <version >${junit4Version} </version >
244
- <scope >test</scope >
245
- </dependency >
246
240
<dependency >
247
241
<groupId >org.slf4j</groupId >
248
242
<artifactId >slf4j-simple</artifactId >
Original file line number Diff line number Diff line change 18
18
*/
19
19
package org .apache .maven .plugins .compiler .it ;
20
20
21
- import junit .framework .Test ;
22
- import junit .framework .TestCase ;
23
- import junit .framework .TestSuite ;
21
+ import org .junit .jupiter .api .Test ;
24
22
25
23
/**
26
24
* Unit test for simple App.
27
25
*/
28
- public class AppTest extends TestCase {
29
- /**
30
- * Create the test case
31
- *
32
- * @param testName name of the test case
33
- */
34
- public AppTest (String testName ) {
35
- super (testName );
36
- }
37
-
38
- /**
39
- * @return the suite of tests being tested
40
- */
41
- public static Test suite () {
42
- return new TestSuite (AppTest .class );
43
- }
44
-
26
+ public class AppTest {
45
27
/**
46
28
* Rigourous Test :-)
47
29
*/
30
+ @ Test
48
31
public void testApp () {
49
32
assertTrue (true );
50
33
}
Original file line number Diff line number Diff line change @@ -486,13 +486,11 @@ private static InternalSession createSession() {
486
486
Path artifactFile ;
487
487
String localRepository = System .getProperty ("localRepository" );
488
488
if (localRepository != null ) {
489
- artifactFile = Paths .get (localRepository , "junit/junit/3.8.1/junit-3.8.1.jar" );
489
+ artifactFile = Paths .get (
490
+ localRepository , "org/junit/jupiter/junit-jupiter-api/5.10.2/junit-jupiter-api-5.10.2.jar" );
490
491
} else {
491
492
// for IDE
492
- String junitURI = junit .framework .Test .class
493
- .getResource ("Test.class" )
494
- .toURI ()
495
- .toString ();
493
+ String junitURI = Test .class .getResource ("Test.class" ).toURI ().toString ();
496
494
junitURI = junitURI .substring ("jar:" .length (), junitURI .indexOf ('!' ));
497
495
artifactFile = new File (URI .create (junitURI )).toPath ();
498
496
}
You can’t perform that action at this time.
0 commit comments