Skip to content

Commit a97cef3

Browse files
committedJun 17, 2024·
update 1002 test
1 parent 5b8be2c commit a97cef3

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed
 

‎src/test/java/com/fishercoder/_1002Test.java

+18-18
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22

33
import com.fishercoder.common.utils.CommonUtils;
44
import com.fishercoder.solutions.secondthousand._1002;
5-
import org.junit.BeforeClass;
6-
import org.junit.Test;
5+
import org.junit.jupiter.api.BeforeEach;
6+
import org.junit.jupiter.api.Test;
77

88
public class _1002Test {
9-
private static _1002.Solution1 solution1;
10-
private static String[] A;
9+
private static _1002.Solution1 solution1;
10+
private static String[] A;
1111

12-
@BeforeClass
13-
public static void setup() {
14-
solution1 = new _1002.Solution1();
15-
}
12+
@BeforeEach
13+
public void setup() {
14+
solution1 = new _1002.Solution1();
15+
}
1616

17-
@Test
18-
public void test1() {
19-
A = new String[] {"bella", "label", "roller"};
20-
CommonUtils.print(solution1.commonChars(A));
21-
}
17+
@Test
18+
public void test1() {
19+
A = new String[]{"bella", "label", "roller"};
20+
CommonUtils.print(solution1.commonChars(A));
21+
}
2222

23-
@Test
24-
public void test2() {
25-
A = new String[] {"cool", "lock", "cook"};
26-
CommonUtils.print(solution1.commonChars(A));
27-
}
23+
@Test
24+
public void test2() {
25+
A = new String[]{"cool", "lock", "cook"};
26+
CommonUtils.print(solution1.commonChars(A));
27+
}
2828
}

0 commit comments

Comments
 (0)
Please sign in to comment.