8000 migrate _33 to junit 5 · aav789/Leetcode@c718509 · GitHub
[go: up one dir, main page]

Skip to content

Commit c718509

Browse files
migrate _33 to junit 5
1 parent 3e0ed6b commit c718509

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/com/fishercoder/_33Test.java

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

33
import com.fishercoder.solutions._33;
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.assertEquals;
7+
import static org.junit.jupiter.api.Assertions.assertEquals;
88

99
public class _33Test {
1010
private static _33.Solution1 solution1;
@@ -14,8 +14,8 @@ public class _33Test {
1414
private static int expected;
1515
private static int target;
1616

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

0 commit comments

Comments
 (0)
0