mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-02 23:39:34 +00:00
Polish web containers stop contribution
See gh-8227
This commit is contained in:
+10
-10
@@ -170,6 +170,16 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
|
||||
assertThat(this.output.toString()).containsOnlyOnce("started on port");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void stopCalledTwice() throws Exception {
|
||||
AbstractEmbeddedServletContainerFactory factory = getFactory();
|
||||
this.container = factory
|
||||
.getEmbeddedServletContainer(exampleServletRegistration());
|
||||
this.container.start();
|
||||
this.container.stop();
|
||||
this.container.stop();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void emptyServerWhenPortIsMinusOne() throws Exception {
|
||||
AbstractEmbeddedServletContainerFactory factory = getFactory();
|
||||
@@ -311,16 +321,6 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
|
||||
getFactory().setContextPath("/");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void doubleStop() throws Exception {
|
||||
AbstractEmbeddedServletContainerFactory factory = getFactory();
|
||||
this.container = factory
|
||||
.getEmbeddedServletContainer(exampleServletRegistration());
|
||||
this.container.start();
|
||||
this.container.stop();
|
||||
this.container.stop();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void multipleConfigurations() throws Exception {
|
||||
AbstractEmbeddedServletContainerFactory factory = getFactory();
|
||||
|
||||
+1
-1
@@ -144,7 +144,7 @@ public class JettyEmbeddedServletContainerFactoryTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void stopNoStart() throws Exception {
|
||||
public void stopCalledWithoutStart() throws Exception {
|
||||
JettyEmbeddedServletContainerFactory factory = getFactory();
|
||||
this.container = factory
|
||||
.getEmbeddedServletContainer(exampleServletRegistration());
|
||||
|
||||
+1
-1
@@ -353,7 +353,7 @@ public class TomcatEmbeddedServletContainerFactoryTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void stopNoStart() throws Exception {
|
||||
public void stopCalledWithoutStart() throws Exception {
|
||||
TomcatEmbeddedServletContainerFactory factory = getFactory();
|
||||
this.container = factory
|
||||
.getEmbeddedServletContainer(exampleServletRegistration());
|
||||
|
||||
Reference in New Issue
Block a user