|
|
@ -223,7 +223,7 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void specificPort() throws Exception {
|
|
|
|
public void specificPort() throws Exception {
|
|
|
|
AbstractEmbeddedServletContainerFactory factory = getFactory();
|
|
|
|
AbstractEmbeddedServletContainerFactory factory = getFactory();
|
|
|
|
int specificPort = SocketUtils.findAvailableTcpPort(40000);
|
|
|
|
int specificPort = SocketUtils.findAvailableTcpPort(41000);
|
|
|
|
factory.setPort(specificPort);
|
|
|
|
factory.setPort(specificPort);
|
|
|
|
this.container = factory
|
|
|
|
this.container = factory
|
|
|
|
.getEmbeddedServletContainer(exampleServletRegistration());
|
|
|
|
.getEmbeddedServletContainer(exampleServletRegistration());
|
|
|
|