Skip to content

Commit 6a04a4a

Browse files
migrate _49 to junit 5
1 parent 267371d commit 6a04a4a

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/test/java/com/fishercoder/_49Test.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
package com.fishercoder;
22

33
import com.fishercoder.solutions._49;
4+
import org.apache.commons.collections4.CollectionUtils;
5+
import org.junit.jupiter.api.BeforeEach;
6+
import org.junit.jupiter.api.Test;
47

5-
import java.util.ArrayList;
68
import java.util.Arrays;
79
import java.util.List;
810

9-
import org.apache.commons.collections4.CollectionUtils;
10-
import org.junit.BeforeClass;
11-
import org.junit.Test;
12-
13-
import static junit.framework.TestCase.assertEquals;
14-
import static junit.framework.TestCase.assertTrue;
15-
import static org.assertj.core.api.Assertions.assertThat;
11+
import static org.junit.jupiter.api.Assertions.assertEquals;
12+
import static org.junit.jupiter.api.Assertions.assertTrue;
1613

1714
public class _49Test {
1815
private static _49.Solution1 solution1;
1916
private static String[] words;
2017
private static List<List<String>> expected;
2118
private static List<List<String>> actual;
2219

23-
@BeforeClass
24-
public static void setup() {
20+
@BeforeEach
21+
public void setup() {
2522
solution1 = new _49.Solution1();
2623
}
2724

0 commit comments

Comments
 (0)