8000 migrate _43 to junit 5 · githubniraj/Leetcode@a83c7b3 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit a83c7b3

Browse files
migrate _43 to junit 5
1 parent 37573a4 commit a83c7b3
< 8000 div class="d-none">

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/com/fishercoder/_43Test.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._43;
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 _43Test {
1010
private static _43.Solution1 solution1;
@@ -13,8 +13,8 @@ public class _43Test {
1313
private static String num1;
1414
private static String num2;
1515

16-
@BeforeClass
17-
public static void setup() {
16+
@BeforeEach
17+
public void setup() {
1818
solution1 = new _43.Solution1();
1919
solution2 = new _43.Solution2();
2020
}

0 commit comments

Comments
 (0)
0