Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7e413a6

Browse files
fix build
1 parent59d19a2 commit7e413a6

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
importcom.fishercoder.common.classes.ListNode;
44
importcom.fishercoder.common.utils.LinkedListUtils;
5-
importorg.junit.BeforeClass;
6-
importorg.junit.Test;
7-
importorg.junit.BeforeClass;
8-
importorg.junit.Test;
95
importcom.fishercoder.solutions._1669;
6+
importorg.junit.Before;
7+
importorg.junit.Test;
8+
9+
importstaticorg.junit.Assert.assertEquals;
1010

1111
publicclass_1669Test {
1212
privatestatic_1669.Solution1solution1;
13-
privatestatic_1669.Solution1solution2;
13+
privatestatic_1669.Solution2solution2;
1414
privatestaticListNodel1;
1515
privatestaticListNodel2;
1616
privatestaticinta;
@@ -20,7 +20,7 @@ public class _1669Test {
2020
privatestaticListNodeexpected;
2121
privatestaticListNodeactual;
2222

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

3939
@Test
4040
publicvoidtest2() {
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(newint[]{0,1,2,3,4,5});
42+
l2 =LinkedListUtils.contructLinkedList(newint[]{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(newint[]{0,1,2,1000000,1000001,1000002,5}),solution2.mergeInBetween(l1,a,b,l2));
4646
}
4747
}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
importcom.fishercoder.common.utils.CommonUtils;
44
importcom.fishercoder.solutions._1981;
5+
importorg.junit.Before;
56
importorg.junit.Test;
67

78
importstaticorg.junit.Assert.assertEquals;
89

910
publicclass_1981Test {
1011
privatestatic_1981.Solution1solution1;
1112

12-
@BeforeEach
13-
publicstaticvoidsetup() {
13+
@Before
14+
publicvoidsetup() {
1415
solution1 =new_1981.Solution1();
1516
}
1617

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp