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

Skip to content

Commit 2a84281

Browse files
migrate _27 test to Junit5
1 parent 3353cc8 commit 2a84281

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/test/java/com/fishercoder/_27Test.java

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

33
import com.fishercoder.solutions._27;
4-
import com.fishercoder.solutions._734;
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 junit.framework.TestCase.assertEquals;
7+
import static org.junit.jupiter.api.Assertions.assertEquals;
98

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

14-
@BeforeClass
15-
public static void setup() {
13+
@BeforeEach
14+
public void setup() {
1615
solution1 = new _27.Solution1();
1716
}
1817

0 commit comments

Comments
 (0)
0