diff --git a/spring-boot/src/test/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactoryTests.java b/spring-boot/src/test/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactoryTests.java index 232fa5bad5..c59e3202f8 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactoryTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactoryTests.java @@ -335,6 +335,7 @@ public class JettyEmbeddedServletContainerFactoryTests threadPool.setMaxThreads(2); threadPool.setMinThreads(2); } + }); this.thrown.expectCause(instanceOf(IllegalStateException.class)); factory.getEmbeddedServletContainer().start();