use of org.springframework.test.web.servlet.setup.MockMvcConfigurer in project spring-boot by spring-projects.
the class MvcEndpointIntegrationTests method doCreateMockMvc.
private MockMvc doCreateMockMvc(MockMvcConfigurer... configurers) {
this.context.setServletContext(new MockServletContext());
this.context.refresh();
DefaultMockMvcBuilder builder = MockMvcBuilders.webAppContextSetup(this.context);
for (MockMvcConfigurer configurer : configurers) {
builder.apply(configurer);
}
return builder.build();
}
Aggregations