diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContextTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContextTests.java index 33dc1b84aa5..b19270c09ab 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContextTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContextTests.java @@ -570,18 +570,4 @@ public class ServletWebServerApplicationContextTests { } - protected static class WithAutowiredServletContext { - - private final ServletContext context; - - public WithAutowiredServletContext(ServletContext context) { - this.context = context; - } - - public ServletContext getContext() { - return this.context; - } - - } - }