diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactoryTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactoryTests.java index 028b6c82b7..45f92cdd6c 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactoryTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactoryTests.java @@ -30,7 +30,6 @@ import java.util.Set; import java.util.concurrent.atomic.AtomicReference; import javax.net.ssl.SSLException; -import javax.net.ssl.SSLHandshakeException; import io.undertow.Undertow.Builder; import io.undertow.servlet.api.DeploymentInfo; @@ -209,8 +208,8 @@ public class UndertowServletWebServerFactoryTests @Test public void sslRestrictedProtocolsEmptyCipherFailure() throws Exception { - this.thrown.expect(anyOf(instanceOf(SSLHandshakeException.class), - instanceOf(SocketException.class))); + this.thrown.expect( + anyOf(instanceOf(SSLException.class), instanceOf(SocketException.class))); testRestrictedSSLProtocolsAndCipherSuites(new String[] { "TLSv1.2" }, new String[] { "TLS_EMPTY_RENEGOTIATION_INFO_SCSV" }); }