Skip to content

Commit e5aefb5

Browse files
migrate 67 to junit5
1 parent 9b32ed7 commit e5aefb5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: src/test/java/com/fishercoder/_67Test.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
package com.fishercoder;
22

33
import com.fishercoder.solutions._67;
4-
import org.junit.BeforeClass;
5-
import org.junit.Test;
4+
import org.junit.jupiter.api.BeforeEach;
5+
import org.junit.jupiter.api.Test;
66

7-
import static junit.framework.Assert.assertEquals;
7+
import static org.junit.jupiter.api.Assertions.assertEquals;
88

99
public class _67Test {
10-
private static _67.Solution1 solution1;
10+
private static _67.Solution1 solution1;
1111

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

17-
@Test
18-
public void test1() {
19-
assertEquals("100", solution1.addBinary("11", "1"));
20-
}
17+
@Test
18+
public void test1() {
19+
assertEquals("100", solution1.addBinary("11", "1"));
20+
}
2121
}

0 commit comments

Comments
 (0)