Skip to content

Commit 9472ac8

Browse files
committed
updated after review
1 parent abc984b commit 9472ac8

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

http-clients/apache5-client/src/test/java/software/amazon/awssdk/http/apache5/Apache5ClientTlsAuthTest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public void tls_strategy_configuration() throws Exception {
291291
}
292292

293293
@Test
294-
public void testTlsStrategyOverridesLegacyFactory() throws Exception {
294+
public void tls_strategy_overrides_legacy_factory() throws Exception {
295295
// Setup TLS context
296296
KeyManager[] keyManagers = keyManagersProvider.keyManagers();
297297
SSLContext sslContext = SSLContext.getInstance("TLS");
@@ -333,7 +333,7 @@ public void testTlsStrategyOverridesLegacyFactory() throws Exception {
333333
}
334334

335335
@Test
336-
public void testAdapterConvertsNonSslSocketException() throws Exception {
336+
public void adapter_converts_non_sslSocketException() throws Exception {
337337
// Create mock that returns a regular Socket (not SSLSocket)
338338
SSLConnectionSocketFactory mockFactory = Mockito.mock(SSLConnectionSocketFactory.class);
339339
Socket nonSslSocket = Mockito.mock(Socket.class);
@@ -361,7 +361,7 @@ public void testAdapterConvertsNonSslSocketException() throws Exception {
361361

362362

363363
@Test
364-
public void testAdapterHandlesNullSocket() throws Exception {
364+
public void adapter_handlesNullSocket() throws Exception {
365365
// Create mock that returns null
366366
SSLConnectionSocketFactory mockFactory = Mockito.mock(SSLConnectionSocketFactory.class);
367367

@@ -385,7 +385,7 @@ public void testAdapterHandlesNullSocket() throws Exception {
385385
}
386386

387387
@Test
388-
public void testNullTlsStrategyFallsBackToDefault() throws Exception {
388+
public void null_tlsStrategy_falls_backToDefault() throws Exception {
389389
// Test that setting tlsSocketStrategy(null) works correctly
390390
client = Apache5HttpClient.builder()
391391
.tlsSocketStrategy(null)
@@ -395,6 +395,4 @@ public void testNullTlsStrategyFallsBackToDefault() throws Exception {
395395
HttpExecuteResponse response = makeRequestWithHttpClient(client);
396396
assertThat(response.httpResponse().isSuccessful()).isTrue();
397397
}
398-
399-
400398
}

http-clients/apache5-client/src/test/java/software/amazon/awssdk/http/apache5/Apache5HttpClientTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,4 @@ public InetAddress[] resolve(final String host) throws UnknownHostException {
145145
.build()
146146
.close();
147147
}
148-
149-
150148
}

http-clients/apache5-client/src/test/java/software/amazon/awssdk/http/apache5/internal/conn/SdkTlsSocketFactoryTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void nullProtocols() {
4242
when(socket.getSupportedProtocols()).thenReturn(null);
4343
when(socket.getEnabledProtocols()).thenReturn(null);
4444

45-
factory.initializeSocket(socket); // Changed from prepareSocket
45+
factory.initializeSocket(socket);
4646

4747
verify(socket, never()).setEnabledProtocols(any());
4848
}
@@ -56,7 +56,7 @@ void amazonCorretto_8_0_292_defaultEnabledProtocols() {
5656
"TLSv1.2", "TLSv1.1", "TLSv1"
5757
});
5858

59-
factory.initializeSocket(socket); // Changed from prepareSocket
59+
factory.initializeSocket(socket);
6060

6161
verify(socket, never()).setEnabledProtocols(any());
6262
}
@@ -70,7 +70,7 @@ void amazonCorretto_11_0_08_defaultEnabledProtocols() {
7070
"TLSv1.3", "TLSv1.2", "TLSv1.1", "TLSv1"
7171
});
7272

73-
factory.initializeSocket(socket); // Changed from prepareSocket
73+
factory.initializeSocket(socket);
7474

7575
verify(socket, never()).setEnabledProtocols(any());
7676
}
@@ -84,7 +84,7 @@ void amazonCorretto_17_0_1_defaultEnabledProtocols() {
8484
"TLSv1.3", "TLSv1.2"
8585
});
8686

87-
factory.initializeSocket(socket); // Changed from prepareSocket
87+
factory.initializeSocket(socket);
8888

8989
verify(socket, never()).setEnabledProtocols(any());
9090
}

0 commit comments

Comments
 (0)