Class MockMvcConfigurerAdapter
java.lang.Object
org.springframework.test.web.servlet.setup.MockMvcConfigurerAdapter
- All Implemented Interfaces:
- MockMvcConfigurer
An empty method implementation of 
MockMvcConfigurer.- Since:
- 4.1
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidafterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder) Invoked immediately when thisMockMvcConfigureris added viaConfigurableMockMvcBuilder.apply(org.springframework.test.web.servlet.setup.MockMvcConfigurer).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 theDispatcherServlet.
- 
Constructor Details- 
MockMvcConfigurerAdapterpublic MockMvcConfigurerAdapter()
 
- 
- 
Method Details- 
afterConfigurerAddedDescription copied from interface:MockMvcConfigurerInvoked immediately when thisMockMvcConfigureris added viaConfigurableMockMvcBuilder.apply(org.springframework.test.web.servlet.setup.MockMvcConfigurer).- Specified by:
- afterConfigurerAddedin interface- MockMvcConfigurer
- Parameters:
- builder- the builder for the MockMvc
 
- 
beforeMockMvcCreated@Nullable public RequestPostProcessor beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext cxt) Description copied from interface:MockMvcConfigurerInvoked when the MockMvc instance is about to be created with the MockMvc builder and the Spring WebApplicationContext that will be passed to theDispatcherServlet.- Specified by:
- beforeMockMvcCreatedin interface- MockMvcConfigurer
- Parameters:
- builder- the builder for the MockMvc
- cxt- the Spring configuration
- Returns:
- a post processor to be applied to every request performed
 through the MockMvcinstance.
 
 
-