Skip to content

Commit 2fb450e

Browse files
committed
Update vanilla tests
1 parent aa2e305 commit 2fb450e

File tree

12 files changed

+383
-183
lines changed

12 files changed

+383
-183
lines changed

test/vanilla/src/test/java/fixtures/bodyarray/ArrayTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import org.junit.BeforeClass;
77
import org.junit.Test;
88

9-
import java.time.Duration;
10-
import java.time.LocalDate;
11-
import java.time.OffsetDateTime;
12-
import java.time.ZoneOffset;
9+
import org.threeten.bp.Duration;
10+
import org.threeten.bp.LocalDate;
11+
import org.threeten.bp.OffsetDateTime;
12+
import org.threeten.bp.ZoneOffset;
1313
import java.util.ArrayList;
1414
import java.util.Arrays;
1515
import java.util.HashMap;
@@ -52,7 +52,7 @@ public void getEmpty() {
5252

5353
@Test
5454
public void putEmpty() {
55-
client.arrays().putEmpty(new ArrayList<>());
55+
client.arrays().putEmpty(new ArrayList<String>());
5656
}
5757

5858
@Test

test/vanilla/src/test/java/fixtures/bodycomplex/PolymorphismTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
import org.junit.BeforeClass;
1111
import org.junit.Test;
1212

13-
import java.time.OffsetDateTime;
14-
import java.time.ZoneOffset;
13+
import org.threeten.bp.OffsetDateTime;
14+
import org.threeten.bp.ZoneOffset;
1515
import java.util.ArrayList;
1616

1717
public class PolymorphismTests {
@@ -50,7 +50,7 @@ public void putValid() {
5050
body.withIswild(true);
5151
body.withSpecies("king");
5252
body.withLength(1.0);
53-
body.withSiblings(new ArrayList<>());
53+
body.withSiblings(new ArrayList<Fish>());
5454

5555
Shark sib1 = new Shark();
5656
sib1.withAge(6);
@@ -86,7 +86,7 @@ public void putValidMissingRequired() {
8686
body.withIswild(true);
8787
body.withSpecies("king");
8888
body.withLength(1.0);
89-
body.withSiblings(new ArrayList<>());
89+
body.withSiblings(new ArrayList<Fish>());
9090

9191
Shark sib1 = new Shark();
9292
sib1.withAge(6);

test/vanilla/src/test/java/fixtures/bodycomplex/PolymorphismrecursiveTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import org.junit.BeforeClass;
1010
import org.junit.Test;
1111

12-
import java.time.OffsetDateTime;
13-
import java.time.ZoneOffset;
12+
import org.threeten.bp.OffsetDateTime;
13+
import org.threeten.bp.ZoneOffset;
1414
import java.util.ArrayList;
1515

1616
public class PolymorphismrecursiveTests {

test/vanilla/src/test/java/fixtures/bodycomplex/PrimitiveTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
import org.junit.BeforeClass;
1717
import org.junit.Test;
1818

19-
import java.time.Duration;
20-
import java.time.LocalDate;
21-
import java.time.OffsetDateTime;
22-
import java.time.ZoneOffset;
19+
import org.threeten.bp.Duration;
20+
import org.threeten.bp.LocalDate;
21+
import org.threeten.bp.OffsetDateTime;
22+
import org.threeten.bp.ZoneOffset;
2323

2424
public class PrimitiveTests {
2525
private static AutoRestComplexTestService client;

test/vanilla/src/test/java/fixtures/bodydate/DateOperationsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.junit.BeforeClass;
66
import org.junit.Test;
77

8-
import java.time.LocalDate;
8+
import org.threeten.bp.LocalDate;
99

1010
import static org.junit.Assert.*;
1111

test/vanilla/src/test/java/fixtures/bodydatetime/DatetimeOperationsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.junit.BeforeClass;
77
import org.junit.Test;
88

9-
import java.time.*;
9+
import org.threeten.bp.*;
1010

1111
public class DatetimeOperationsTests {
1212
private static AutoRestDateTimeTestService client;

test/vanilla/src/test/java/fixtures/bodydatetimerfc1123/DateTimeRfc1123OperationsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import org.junit.BeforeClass;
77
import org.junit.Test;
88

9-
import java.time.OffsetDateTime;
10-
import java.time.ZoneOffset;
9+
import org.threeten.bp.OffsetDateTime;
10+
import org.threeten.bp.ZoneOffset;
1111

1212
import static org.hamcrest.core.IsInstanceOf.instanceOf;
1313
import static org.junit.Assert.assertThat;

test/vanilla/src/test/java/fixtures/bodydictionary/DictionaryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.junit.BeforeClass;
77
import org.junit.Test;
88

9-
import java.time.*;
9+
import org.threeten.bp.*;
1010
import java.util.Arrays;
1111
import java.util.HashMap;
1212
import java.util.List;
@@ -45,7 +45,7 @@ public void getEmpty() {
4545

4646
@Test
4747
public void putEmpty() {
48-
client.dictionarys().putEmpty(new HashMap<>());
48+
client.dictionarys().putEmpty(new HashMap<String, String>());
4949
}
5050

5151
@Test

test/vanilla/src/test/java/fixtures/bodyduration/DurationOperationsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import fixtures.bodyduration.implementation.AutoRestDurationTestServiceImpl;
99

10-
import java.time.Duration;
10+
import org.threeten.bp.Duration;
1111

1212
import static org.junit.Assert.*;
1313

test/vanilla/src/test/java/fixtures/bodyinteger/IntOperationsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
import org.junit.BeforeClass;
1111
import org.junit.Test;
1212

13-
import java.time.OffsetDateTime;
14-
import java.time.ZoneOffset;
13+
import org.threeten.bp.OffsetDateTime;
14+
import org.threeten.bp.ZoneOffset;
1515
import java.util.concurrent.CountDownLatch;
1616
import java.util.concurrent.TimeUnit;
1717

0 commit comments

Comments
 (0)