pull/2877/merge
Stephane Nicoll 9 years ago
parent 57f26c6bfc
commit f6f74e1aef

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

Loading…
Cancel
Save