8000 migrate 67 to junit5 · githubniraj/Leetcode@e5aefb5 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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
Lines changed: 12 additions & 12 deletions
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)
0