8000 migrate _40 to junit 5 · aav789/Leetcode@ccd0b30 · GitHub
[go: up one dir, main page]

Skip to content

Commit ccd0b30

Browse files
migrate _40 to junit 5
1 parent 0e0cb33 commit ccd0b30

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/test/java/com/fishercoder/_40Test.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
package com.fishercoder;
22

33
import com.fishercoder.solutions._40;
4+
import org.junit.jupiter.api.BeforeEach;
5+
import org.junit.jupiter.api.Test;
46

57
import java.util.Arrays;
68
import java.util.List;
79

8-
import org.junit.BeforeClass;
9-
import org.junit.Test;
10-
11-
import static org.junit.Assert.assertEquals;
10+
import static org.junit.jupiter.api.Assertions.assertEquals;
1211

1312
public class _40Test {
1413
private static _40.Solution1 solution1;
1514
private static int[] candidates;
1615
private static int target;
1716
private static List<List<Integer>> expected;
1817

19-
@BeforeClass
20-
public static void setup() {
18+
@BeforeEach
19+
public void setup() {
2120
solution1 = new _40.Solution1();
2221
}
2322

0 commit comments

Comments
 (0)
0