Skip to content

Commit 8866a25

Browse files
committed
Polish Undertow tests
1 parent 6138041 commit 8866a25

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactoryTests.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import java.util.concurrent.atomic.AtomicReference;
3131

3232
import javax.net.ssl.SSLException;
33-
import javax.net.ssl.SSLHandshakeException;
3433

3534
import io.undertow.Undertow.Builder;
3635
import io.undertow.servlet.api.DeploymentInfo;
@@ -209,8 +208,8 @@ protected void addConnector(int port, AbstractServletWebServerFactory factory) {
209208

210209
@Test
211210
public void sslRestrictedProtocolsEmptyCipherFailure() throws Exception {
212-
this.thrown.expect(anyOf(instanceOf(SSLHandshakeException.class),
213-
instanceOf(SocketException.class)));
211+
this.thrown.expect(
212+
anyOf(instanceOf(SSLException.class), instanceOf(SocketException.class)));
214213
testRestrictedSSLProtocolsAndCipherSuites(new String[] { "TLSv1.2" },
215214
new String[] { "TLS_EMPTY_RENEGOTIATION_INFO_SCSV" });
216215
}

0 commit comments

Comments
 (0)