Skip to content

Commit bea3539

Browse files
committed
Align Undertow tests with changes made to fix UNDERTOW-1260
Closes spring-projectsgh-13055
1 parent bcd2b7d commit bea3539

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spring-boot/src/test/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactoryTests.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import java.util.concurrent.atomic.AtomicReference;
3131

3232
import javax.net.ssl.KeyManager;
33-
import javax.net.ssl.SSLHandshakeException;
33+
import javax.net.ssl.SSLException;
3434

3535
import io.undertow.Undertow.Builder;
3636
import io.undertow.servlet.api.DeploymentInfo;
@@ -227,16 +227,16 @@ public void customize(Builder builder) {
227227

228228
@Test
229229
public void sslRestrictedProtocolsEmptyCipherFailure() throws Exception {
230-
this.thrown.expect(anyOf(instanceOf(SSLHandshakeException.class),
231-
instanceOf(SocketException.class)));
230+
this.thrown.expect(
231+
anyOf(instanceOf(SSLException.class), instanceOf(SocketException.class)));
232232
testRestrictedSSLProtocolsAndCipherSuites(new String[] { "TLSv1.2" },
233233
new String[] { "TLS_EMPTY_RENEGOTIATION_INFO_SCSV" });
234234
}
235235

236236
@Test
237237
public void sslRestrictedProtocolsECDHETLS1Failure() throws Exception {
238-
this.thrown.expect(anyOf(instanceOf(SSLHandshakeException.class),
239-
instanceOf(SocketException.class)));
238+
this.thrown.expect(
239+
anyOf(instanceOf(SSLException.class), instanceOf(SocketException.class)));
240240
testRestrictedSSLProtocolsAndCipherSuites(new String[] { "TLSv1" },
241241
new String[] { "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" });
242242
}
@@ -255,8 +255,8 @@ public void sslRestrictedProtocolsRSATLS12Success() throws Exception {
255255

256256
@Test
257257
public void sslRestrictedProtocolsRSATLS11Failure() throws Exception {
258-
this.thrown.expect(anyOf(instanceOf(SSLHandshakeException.class),
259-
instanceOf(SocketException.class)));
258+
this.thrown.expect(
259+
anyOf(instanceOf(SSLException.class), instanceOf(SocketException.class)));
260260
testRestrictedSSLProtocolsAndCipherSuites(new String[] { "TLSv1.1" },
261261
new String[] { "TLS_RSA_WITH_AES_128_CBC_SHA256" });
262262
}

0 commit comments

Comments
 (0)