public abstract class MockMvcConfigurerAdapter extends Object implements MockMvcConfigurer
MockMvcConfigurer
.Constructor and Description |
---|
MockMvcConfigurerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
afterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder)
Invoked immediately when this
MockMvcConfigurer is added via
ConfigurableMockMvcBuilder.apply(org.springframework.test.web.servlet.setup.MockMvcConfigurer) . |
RequestPostProcessor |
beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder,
WebApplicationContext cxt)
Invoked when the MockMvc instance is about to be created with the MockMvc
builder and the Spring WebApplicationContext that will be passed to the
DispatcherServlet . |
public void afterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder)
MockMvcConfigurer
MockMvcConfigurer
is added via
ConfigurableMockMvcBuilder.apply(org.springframework.test.web.servlet.setup.MockMvcConfigurer)
.afterConfigurerAdded
in interface MockMvcConfigurer
builder
- the builder for the MockMvc@Nullable public RequestPostProcessor beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext cxt)
MockMvcConfigurer
DispatcherServlet
.beforeMockMvcCreated
in interface MockMvcConfigurer
builder
- the builder for the MockMvccxt
- the Spring configurationMockMvc
instance.