Skip to content

Commit 94b924b

Browse files
migrate 62 to junit5
1 parent 1473117 commit 94b924b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: src/test/java/com/fishercoder/_62Test.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._62;
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 _62Test {
10-
private static _62.Solution1 solution1;
10+
private static _62.Solution1 solution1;
1111

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

17-
@Test
18-
public void test1() {
19-
assertEquals(1, solution1.uniquePaths(1, 2));
20-
}
17+
@Test
18+
public void test1() {
19+
assertEquals(1, solution1.uniquePaths(1, 2));
20+
}
2121
}

0 commit comments

Comments
 (0)