File tree 1 file changed +18
-18
lines changed
src/test/java/com/fishercoder
1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .fishercoder .common .utils .CommonUtils ;
4
4
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 ;
7
7
8
8
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 ;
11
11
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
+ }
16
16
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
+ }
22
22
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
+ }
28
28
}
You can’t perform that action at this time.
0 commit comments