Skip to content

Commit f8fba37

Browse files
committed
Polish
Signed-off-by: Daeho Kwon <[email protected]>
1 parent 1f2c372 commit f8fba37

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/ServletContextInitializerBeansTests.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,18 @@ ServletRegistrationBean<TestServlet> testServletRegistrationBean() {
302302
return new ServletRegistrationBean<>(new TestServlet());
303303
}
304304

305+
@Bean
306+
ServletRegistrationBean<NonMatchingServlet> nonMatchingServletRegistrationBean() {
307+
return new ServletRegistrationBean<>(new NonMatchingServlet());
308+
}
309+
310+
static class NonMatchingServlet extends HttpServlet implements ServletContextInitializer {
311+
@Override
312+
public void onStartup(ServletContext servletContext) {
313+
314+
}
315+
}
316+
305317
}
306318

307319
@Configuration(proxyBeanMethods = false)

0 commit comments

Comments
 (0)