Skip to content

Commit 6da3da0

Browse files
migrate 55 and 55 to junit5
1 parent 775aade commit 6da3da0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import static org.junit.jupiter.api.Assertions.assertEquals;
1010

1111
public class _54Test {
12-
1312
private static _54.Solution1 solution1;
1413
private static int[][] matrix;
1514

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

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

33
import com.fishercoder.solutions._55;
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 org.junit.Assert.assertEquals;
7+
import static org.junit.jupiter.api.Assertions.assertEquals;
88

99
public class _55Test {
1010
private static _55.Solution1 solution1;
@@ -13,8 +13,8 @@ public class _55Test {
1313
private static _55.Solution4 solution4;
1414
private static int[] nums;
1515

16-
@BeforeClass
17-
public static void setup() {
16+
@BeforeEach
17+
public void setup() {
1818
solution1 = new _55.Solution1();
1919
solution2 = new _55.Solution2();
2020
solution3 = new _55.Solution3();

0 commit comments

Comments
 (0)