File tree 2 files changed +14
-6
lines changed
src/test/java/com/fishercoder
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,17 @@ dependencies {
35
35
compile ' junit:junit:4.13'
36
36
compile group : ' org.apache.commons' , name : ' commons-collections4' , version : ' 4.0'
37
37
testCompile " junit:junit:4.13.1"
38
- testCompile(" org.assertj:assertj-core:3.11.1" )
39
38
39
+ testImplementation ' org.junit.jupiter:junit-jupiter-api:5.8.1'
40
+ testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.8.1'
41
+
42
+ testCompile(" org.assertj:assertj-core:3.11.1" )
40
43
compileOnly ' org.projectlombok:lombok:1.18.12'
41
44
annotationProcessor ' org.projectlombok:lombok:1.18.12'
42
45
testCompileOnly ' org.projectlombok:lombok:1.18.12'
43
46
testAnnotationProcessor ' org.projectlombok:lombok:1.18.12'
44
47
}
48
+
49
+ test {
50
+ useJUnitPlatform()
51
+ }
Original file line number Diff line number Diff line change 1
1
package com .fishercoder ;
2
2
3
3
import com .fishercoder .solutions ._2716 ;
4
- import org .junit .BeforeClass ;
5
- import org .junit .Test ;
4
+ import org .junit .jupiter .api .BeforeEach ;
5
+ import org .junit .jupiter .api .Test ;
6
+
7
+ import static org .junit .jupiter .api .Assertions .assertEquals ;
6
8
7
- import static org .junit .Assert .assertEquals ;
8
9
9
10
public class _2716Test {
10
11
private static _2716 .Solution1 solution1 ;
11
12
12
- @ BeforeClass
13
- public static void setup () {
13
+ @ BeforeEach
14
+ public void setup () {
14
15
solution1 = new _2716 .Solution1 ();
15
16
}
16
17
You can’t perform that action at this time.
0 commit comments