Skip to content

Commit 7e413a6

Browse files
fix build
1 parent 59d19a2 commit 7e413a6

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/test/java/com/fishercoder/_1669Test.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
import com.fishercoder.common.classes.ListNode;
44
import com.fishercoder.common.utils.LinkedListUtils;
5-
import org.junit.BeforeClass;
6-
import org.junit.Test;
7-
import org.junit.BeforeClass;
8-
import org.junit.Test;
95
import com.fishercoder.solutions._1669;
6+
import org.junit.Before;
7+
import org.junit.Test;
8+
9+
import static org.junit.Assert.assertEquals;
1010

1111
public class _1669Test {
1212
private static _1669.Solution1 solution1;
13-
private static _1669.Solution1 solution2;
13+
private static _1669.Solution2 solution2;
1414
private static ListNode l1;
1515
private static ListNode l2;
1616
private static int a;
@@ -20,7 +20,7 @@ public class _1669Test {
2020
private static ListNode expected;
2121
private static ListNode actual;
2222

23-
@BeforeClass
23+
@Before
2424
public static void setup() {
2525
solution1 = new _1669.Solution1();
2626
solution2 = new _1669.Solution2();
@@ -38,10 +38,10 @@ public void test1() {
3838

3939
@Test
4040
public void test2() {
41-
l1 = ListNode.createSinglyLinkedList(Arrays.asList(0, 1, 2, 3, 4, 5));
42-
l2 = ListNode.createSinglyLinkedList(Arrays.asList(1000000, 1000001, 1000002));
41+
l1 = LinkedListUtils.contructLinkedList(new int[]{0, 1, 2, 3, 4, 5});
42+
l2 = LinkedListUtils.contructLinkedList(new int[]{1000000, 1000001, 1000002});
4343
a = 3;
4444
b = 4;
45-
assertEquals(ListNode.createSinglyLinkedList(Arrays.asList(0, 1, 2, 1000000, 1000001, 1000002, 5)), solution2.mergeInBetween(l1, a, b, l2));
45+
assertEquals(LinkedListUtils.contructLinkedList(new int[]{0, 1, 2, 1000000, 1000001, 1000002, 5}), solution2.mergeInBetween(l1, a, b, l2));
4646
}
4747
}

src/test/java/com/fishercoder/_1981Test.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
import com.fishercoder.common.utils.CommonUtils;
44
import com.fishercoder.solutions._1981;
5+
import org.junit.Before;
56
import org.junit.Test;
67

78
import static org.junit.Assert.assertEquals;
89

910
public class _1981Test {
1011
private static _1981.Solution1 solution1;
1112

12-
@BeforeEach
13-
public static void setup() {
13+
@Before
14+
public void setup() {
1415
solution1 = new _1981.Solution1();
1516
}
1617

0 commit comments

Comments
 (0)