8000 migrate _25 test to Junit5 · githubniraj/Leetcode@0e5f650 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e5f650

Browse files
migrate _25 test to Junit5
1 parent 8fbf24c commit 0e5f650

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/com/fishercoder/_25Test.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import com.fishercoder.common.classes.ListNode;
44
import com.fishercoder.common.utils.LinkedListUtils;
55
import com.fishercoder.solutions._25;
6-
import org.junit.BeforeClass;
7-
import org.junit.Test;
6+
import org.junit.jupiter.api.BeforeEach;
7+
import org.junit.jupiter.api.Test;
88

9-
import static org.junit.Assert.assertEquals;
9+
import static org.junit.jupiter.api.Assertions.assertEquals;
1010

1111
public class _25Test {
1212
private static _25.Solution1 solution1;
@@ -16,8 +16,8 @@ public class _25Test {
1616
private static ListNode head;
1717
private static int k;
1818

19-
@BeforeClass
20-
public static void setup() {
19+
@BeforeEach
20+
public void setup() {
2121
solution1 = new _25.Solution1();
2222
solution2 = new _25.Solution2();
2323
solution3 = new _25.Solution3();

0 commit comments

Comments
 (0)
0