File tree Expand file tree Collapse file tree 3 files changed +7
-25
lines changed
gem-maven-plugin/src/it/gemify-pom
src/test/java/com/example Expand file tree Collapse file tree 3 files changed +7
-25
lines changed Original file line number Diff line number Diff line change 9
9
<url >http://maven.apache.org</url >
10
10
<dependencies >
11
11
<dependency >
12
- <groupId >junit</groupId >
13
- <artifactId >junit</artifactId >
14
- <version >4.13.1 </version >
12
+ <groupId >org. junit.jupiter </groupId >
13
+ <artifactId >junit-jupiter </artifactId >
14
+ <version >5.10.0 </version >
15
15
<scope >test</scope >
16
16
</dependency >
17
17
</dependencies >
Original file line number Diff line number Diff line change 1
1
package com .example ;
2
2
3
- import junit .framework .Test ;
4
- import junit .framework .TestCase ;
5
- import junit .framework .TestSuite ;
3
+ import org .junit .jupiter .api .Test ;
4
+ import static org .junit .jupiter .api .Assertions .assertTrue ;
6
5
7
6
/**
8
7
* Unit test for simple App.
9
8
*/
10
9
public class AppTest
11
- extends TestCase
12
10
{
13
- /**
14
- * Create the test case
15
- *
16
- * @param testName name of the test case
17
- */
18
- public AppTest ( String testName )
19
- {
20
- super ( testName );
21
- }
22
-
23
- /**
24
- * @return the suite of tests being tested
25
- */
26
- public static Test suite ()
27
- {
28
- return new TestSuite ( AppTest .class );
29
- }
30
11
31
12
/**
32
13
* Rigourous Test :-)
33
14
*/
15
+ @ Test
34
16
public void testApp ()
35
17
{
36
18
assertTrue ( true );
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if ( !log.contains( expected ) )
9
9
throw new RuntimeException( "log file does not contain '" + expected + "'" );
10
10
}
11
11
12
- expected = "Successfully installed junit.junit-3.8.1 ";
12
+ expected = "Successfully installed org. junit.jupiter. junit-jupiter-engine-5.10.0 ";
13
13
if ( !log.contains( expected ) )
14
14
{
15
15
throw new RuntimeException( "log file does not contain '" + expected + "'" );
You can’t perform that action at this time.
0 commit comments