Skip to content

Commit cab48fa

Browse files
committed
Junits updated after build checks failed
1 parent 444d09e commit cab48fa

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

core/sdk-core/src/test/java/software/amazon/awssdk/core/http/AmazonHttpClientTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public void testRetryIoExceptionFromExecute() throws Exception {
9696
Assert.assertSame(ioException, e.getCause());
9797
}
9898

99-
// Verify that we called execute 4 times.
100-
verify(sdkHttpClient, times(4)).prepareRequest(any());
99+
// Verify that we called execute 3 times.
100+
verify(sdkHttpClient, times(3)).prepareRequest(any());
101101
}
102102

103103
@Test
@@ -119,8 +119,8 @@ public void testRetryIoExceptionFromHandler() throws Exception {
119119
Assert.assertSame(exception, e.getCause());
120120
}
121121

122-
// Verify that we called execute 4 times.
123-
verify(mockHandler, times(4)).handle(any(), any());
122+
// Verify that we called execute 3 times.
123+
verify(mockHandler, times(3)).handle(any(), any());
124124
}
125125

126126

core/sdk-core/src/test/java/software/amazon/awssdk/core/http/ContentStreamProviderWireMockTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public void closesAllCreatedInputStreamsFromProvider() {
6565
} catch (SdkServiceException ignored) {
6666
}
6767

68-
// The test client uses the default retry policy so there should be 4
68+
// The test client uses the default retry policy so there should be 3
6969
// total attempts and an equal number created streams
70-
assertThat(provider.getCreatedStreams().size()).isEqualTo(4);
70+
assertThat(provider.getCreatedStreams().size()).isEqualTo(3);
7171
for (CloseTrackingInputStream is : provider.getCreatedStreams()) {
7272
assertThat(is.isClosed()).isTrue();
7373
}

core/sdk-core/src/test/java/software/amazon/awssdk/core/retry/RetryModeTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class RetryModeTest {
4444
public static Collection<Object> data() {
4545
return Arrays.asList(new Object[] {
4646
// Test defaults
47-
new TestData(null, null, null, null, RetryMode.LEGACY),
48-
new TestData(null, null, "PropertyNotSet", null, RetryMode.LEGACY),
47+
new TestData(null, null, null, null, RetryMode.STANDARD),
48+
new TestData(null, null, "PropertyNotSet", null, RetryMode.STANDARD),
4949

5050
// Test resolution
5151
new TestData("legacy", null, null, null, RetryMode.LEGACY),

core/sdk-core/src/test/java/software/amazon/awssdk/core/retry/RetryPolicyMaxRetriesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class RetryPolicyMaxRetriesTest {
4444
public static Collection<Object> data() {
4545
return Arrays.asList(new Object[] {
4646
// Test defaults
47-
new TestData(null, null, null, null, null, 3),
48-
new TestData(null, null, null, null, "PropertyNotSet", 3),
47+
new TestData(null, null, null, null, null, 2),
48+
new TestData(null, null, null, null, "PropertyNotSet", 2),
4949

5050
// Test precedence
5151
new TestData("9", "2", "standard", "standard", "PropertySetToStandard", 8),

core/sdk-core/src/test/java/software/amazon/awssdk/core/retry/RetryPolicyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void nonRetryPolicy_shouldUseNullCondition() {
8989
@Test
9090
public void nonRetryMode_shouldUseDefaultRetryMode() {
9191
RetryPolicy policy = RetryPolicy.builder().build();
92-
assertThat(policy.retryMode().toString()).isEqualTo("LEGACY");
92+
assertThat(policy.retryMode().toString()).isEqualTo("STANDARD");
9393
}
9494

9595
@Test

core/sdk-core/src/test/java/software/amazon/awssdk/core/retry/RetryStrategyMaxRetriesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public class RetryStrategyMaxRetriesTest {
4646
public static Collection<Object> data() {
4747
return Arrays.asList(new Object[] {
4848
// Test defaults
49-
new TestData(null, null, null, null, null, 4),
50-
new TestData(null, null, null, null, "PropertyNotSet", 4),
49+
new TestData(null, null, null, null, null, 3),
50+
new TestData(null, null, null, null, "PropertyNotSet", 3),
5151

5252
// Test precedence
5353
new TestData("9", "2", "standard", "standard",

0 commit comments

Comments
 (0)