File tree 1 file changed +16
-16
lines changed
src/test/java/com/fishercoder
1 file changed +16
-16
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 ._69 ;
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 _69Test {
10
- private static _69 .Solution1 solution1 ;
10
+ private static _69 .Solution1 solution1 ;
11
11
12
- @ BeforeClass
13
- public static void setup () {
14
- solution1 = new _69 .Solution1 ();
15
- }
12
+ @ BeforeEach
13
+ public void setup () {
14
+ solution1 = new _69 .Solution1 ();
15
+ }
16
16
17
- @ Test
18
- public void test1 () {
19
- assertEquals (4 , solution1 .mySqrt (16 ));
20
- }
17
+ @ Test
18
+ public void test1 () {
19
+ assertEquals (4 , solution1 .mySqrt (16 ));
20
+ }
21
21
22
- @ Test
23
- public void test2 () {
24
- assertEquals (2 , solution1 .mySqrt (8 ));
25
- }
22
+ @ Test
23
+ public void test2 () {
24
+ assertEquals (2 , solution1 .mySqrt (8 ));
25
+ }
26
26
}
You can’t perform that action at this time.
0 commit comments