8000 update _15 to use junit5 · githubniraj/Leetcode@9e91010 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e91010

Browse files
update _15 to use junit5
1 parent 845bdb6 commit 9e91010

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/com/fishercoder/_15Test.java

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

33
import com.fishercoder.solutions._15;
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

77
import java.util.ArrayList;
88
import java.util.Arrays;
99
import java.util.List;
1010

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

1313
public class _15Test {
1414
private static _15.Solution1 solution1;
1515
private static int[] nums;
1616
private static List<List<Integer>> expected;
1717

18-
@BeforeClass
19-
public static void setup() {
18+
@BeforeEach
19+
public void setup() {
2020
solution1 = new _15.Solution1();
2121
}
2222

0 commit comments

Comments
 (0)< 2F76 /span>
0