8000 migrate _19 test to Junit5 · githubniraj/Leetcode@777f919 · GitHub
[go: up one dir, main page]

Skip to content

Commit 777f919

Browse files
migrate _19 test to Junit5
1 parent c2c67c8 commit 777f919

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/com/fishercoder/_19Test.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
import com.fishercoder.common.classes.ListNode;
44
import com.fishercoder.common.utils.LinkedListUtils;
55
import com.fishercoder.solutions._19;
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 _19Test {
1212
private static _19.Solution1 solution1;
1313
private static _19.Solution3 solution3;
1414
private static ListNode head;
1515
private static ListNode expected;
1616

17-
@BeforeClass
18-
public static void setup() {
17+
@BeforeEach
18+
public void setup() {
1919
solution1 = new _19.Solution1();
2020
solution3 = new _19.Solution3();
2121
}

0 commit comments

Comments
 (0)
0