Skip to content

Commit a054d47

Browse files
migrate 53 to junit 5
1 parent dc1b92e commit a054d47

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

Diff for: src/test/java/com/fishercoder/_53Test.java

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
package com.fishercoder;
22

33
import com.fishercoder.solutions._53;
4-
import org.junit.Before;
5-
import org.junit.BeforeClass;
6-
import org.junit.Test;
4+
import org.junit.jupiter.api.BeforeEach;
5+
import org.junit.jupiter.api.Test;
76

8-
import static org.junit.Assert.assertEquals;
7+
import static org.junit.jupiter.api.Assertions.assertEquals;
98

109
public class _53Test {
1110
private static _53.Solution1 solution1;
1211
private static int[] nums;
1312

14-
@BeforeClass
15-
public static void setup() {
16-
solution1 = new _53.Solution1();
17-
}
18-
19-
@Before
20-
public void clear() {
13+
@BeforeEach
14+
public void setup() {
2115
solution1 = new _53.Solution1();
2216
}
2317

0 commit comments

Comments
 (0)