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

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e5f20ac

Browse files
migrate _21 test to Junit5
1 parent 77bd5bb commit e5f20ac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/com/fishercoder/_21Test.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
import com.fishercoder.common.classes.ListNode;
44
import com.fishercoder.common.utils.LinkedListUtils;
55
import com.fishercoder.solutions._21;
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

99
import java.util.Arrays;
1010

11-
import static org.junit.Assert.assertEquals;
11+
import static org.junit.jupiter.api.Assertions.assertEquals;
1212

1313
public class _21Test {
1414
private static _21.Solution1 solution1;
1515
private static _21.Solution2 solution2;
1616
private static ListNode l1;
1717
private static ListNode l2;
1818

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

0 commit comments

Comments
 (0)
0