use of javax.servlet.FilterRegistration in project tutorials by eugenp.
the class SpringBootWithServletComponentIntegrationTest method givenServletContext_whenCheckHelloFilterMappings_thenCorrect.
@Test
public void givenServletContext_whenCheckHelloFilterMappings_thenCorrect() {
assertNotNull(servletContext);
FilterRegistration filterRegistration = servletContext.getFilterRegistration("hello filter");
assertNotNull(filterRegistration);
assertTrue(filterRegistration.getServletNameMappings().contains("echo servlet"));
}
Aggregations