Skip to content

Commit 775aade

Browse files
migrate 54 to junit 5
1 parent a054d47 commit 775aade

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

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

33
import com.fishercoder.solutions._54;
4+
import org.junit.jupiter.api.BeforeEach;
5+
import org.junit.jupiter.api.Test;
46

57
import java.util.Arrays;
68

7-
import org.junit.BeforeClass;
8-
import org.junit.Test;
9-
10-
import static org.junit.Assert.assertEquals;
9+
import static org.junit.jupiter.api.Assertions.assertEquals;
1110

1211
public class _54Test {
1312

1413
private static _54.Solution1 solution1;
1514
private static int[][] matrix;
1615

17-
@BeforeClass
18-
public static void setup() {
16+
@BeforeEach
17+
public void setup() {
1918
solution1 = new _54.Solution1();
2019
}
2120

0 commit comments

Comments
 (0)