File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
src/test/java/com/fishercoder Expand file tree Collapse file tree 1 file changed +15
-15
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 ._50 ;
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 org .junit .Assert .assertEquals ;
7
+ import static org .junit .jupiter . api . Assertions .assertEquals ;
8
8
9
9
public class _50Test {
10
- private static _50 .Solution1 solution1 ;
11
- private static _50 .Solution2 solution2 ;
10
+ private static _50 .Solution1 solution1 ;
11
+ private static _50 .Solution2 solution2 ;
12
12
13
- @ BeforeClass
14
- public static void setup () {
15
- solution1 = new _50 .Solution1 ();
16
- solution2 = new _50 .Solution2 ();
17
- }
13
+ @ BeforeEach
14
+ public void setup () {
15
+ solution1 = new _50 .Solution1 ();
16
+ solution2 = new _50 .Solution2 ();
17
+ }
18
18
19
- @ Test
20
- public void test1 () {
21
- assertEquals (1024.00000 , solution1 .myPow (2.00000 , 10 ), 0.00001 );
22
- assertEquals (1024.00000 , solution2 .myPow (2.00000 , 10 ), 0.00001 );
23
- }
19
+ @ Test
20
+ public void test1 () {
21
+ assertEquals (1024.00000 , solution1 .myPow (2.00000 , 10 ), 0.00001 );
22
+ assertEquals (1024.00000 , solution2 .myPow (2.00000 , 10 ), 0.00001 );
23
+ }
24
24
}
You can’t perform that action at this time.
0 commit comments