File tree 1 file changed +20
-20
lines changed
src/test/java/com/fishercoder
1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change 1
1
package com .fishercoder ;
2
2
3
3
import com .fishercoder .solutions ._74 ;
4
- import org .junit .BeforeClass ;
5
- import org .junit .Test ;
4
+ import org .junit .jupiter . api . BeforeEach ;
5
+ import org .junit .jupiter . api . Test ;
6
6
7
- import static junit .framework . Assert .assertEquals ;
7
+ import static org . junit .jupiter . api . Assertions .assertEquals ;
8
8
9
9
public class _74Test {
10
- private static _74 .Solution1 solution1 ;
11
- private static int target ;
12
- private static int [][] matrix ;
10
+ private static _74 .Solution1 solution1 ;
11
+ private static int target ;
12
+ private static int [][] matrix ;
13
13
14
- @ BeforeClass
15
- public static void setup () {
16
- solution1 = new _74 .Solution1 ();
17
- }
14
+ @ BeforeEach
15
+ public void setup () {
16
+ solution1 = new _74 .Solution1 ();
17
+ }
18
18
19
- @ Test
20
- public void test1 () {
21
- target = 3 ;
22
- matrix = new int [][] {
23
- {1 , 3 , 5 , 7 },
24
- {10 , 11 , 16 , 20 },
25
- {23 , 30 , 34 , 50 },
26
- };
27
- assertEquals (true , solution1 .searchMatrix (matrix , target ));
28
- }
19
+ @ Test
20
+ public void test1 () {
21
+ target = 3 ;
22
+ matrix = new int [][]{
23
+ {1 , 3 , 5 , 7 },
24
+ {10 , 11 , 16 , 20 },
25
+ {23 , 30 , 34 , 50 },
26
+ };
27
+ assertEquals (true , solution1 .searchMatrix (matrix , target ));
28
+ }
29
29
}
You can’t perform that action at this time.
0 commit comments