This commit is contained in:
Stephane Nicoll
2015-07-10 10:48:47 +02:00
parent 57f26c6bfc
commit f6f74e1aef

View File

@@ -19,7 +19,6 @@ package org.springframework.boot.context.embedded.tomcat;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -259,7 +258,7 @@ public class TomcatEmbeddedServletContainerFactoryTests extends
@Test
public void primaryConnectorPortClashThrowsIllegalStateException()
throws InterruptedException, UnknownHostException, IOException {
throws InterruptedException, IOException {
final int port = SocketUtils.findAvailableTcpPort(40000);
doWithBlockedPort(port, new Runnable() {
@@ -286,7 +285,7 @@ public class TomcatEmbeddedServletContainerFactoryTests extends
@Test
public void additionalConnectorPortClashThrowsIllegalStateException()
throws InterruptedException, UnknownHostException, IOException {
throws InterruptedException, IOException {
final int port = SocketUtils.findAvailableTcpPort(40000);
doWithBlockedPort(port, new Runnable() {