Skip to content

Commit 4ea8f84

Browse files
migrate _45 to junit 5
1 parent ff23c20 commit 4ea8f84

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

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

33
import com.fishercoder.solutions._45;
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 _45Test {
1010
private static _45.Solution1 solution1;
1111
private static int[] nums;
1212

13-
@BeforeClass
14-
public static void setup() {
13+
@BeforeEach
14+
public void setup() {
1515
solution1 = new _45.Solution1();
1616
}
1717

0 commit comments

Comments
 (0)