10000 migrate _34 to junit 5 · aav789/Leetcode@d6410f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6410f1

Browse files
migrate _34 to junit 5
1 parent c718509 commit d6410f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/com/fishercoder/_34Test.java

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

33
import com.fishercoder.solutions._34;
4-
import org.junit.BeforeClass;
5-
import org.junit.Test;
4+
import org.junit.jupiter.api.BeforeEach;
5+
import org.junit.jupiter.api.Test;
66

7-
import static org.junit.Assert.assertArrayEquals;
7+
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
88

99
public class _34Test {
1010
private static _34.Solution1 solution1;
1111
private static _34.Solution2 solution2;
1212
private static _34.Solution3 solution3;
1313
private static int[] nums;
1414

15-
@BeforeClass
16-
public static void setup() {
15+
@BeforeEach
16+
public void setup() {
1717
solution1 = new _34.Solution1();
1818
solution2 = new _34.Solution2();
1919
solution3 = new _34.Solution3();

0 commit comments

Comments
 (0)
0