public class DefaultMockMvcBuilder extends AbstractMockMvcBuilder<DefaultMockMvcBuilder>
AbstractMockMvcBuilder that simply
provides the WebApplicationContext given to it as a constructor argument.| Modifier | Constructor and Description |
|---|---|
protected |
DefaultMockMvcBuilder(org.springframework.web.context.WebApplicationContext webAppContext)
Protected constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.context.WebApplicationContext |
initWebAppContext()
A method to obtain the WebApplicationContext to be passed to the DispatcherServlet.
|
addFilter, addFilters, alwaysDo, alwaysExpect, build, defaultRequest, dispatchOptionscreateMockMvcprotected DefaultMockMvcBuilder(org.springframework.web.context.WebApplicationContext webAppContext)
protected org.springframework.web.context.WebApplicationContext initWebAppContext()
AbstractMockMvcBuilderAbstractMockMvcBuilder.build() before the
MockMvc instance is created.initWebAppContext in class AbstractMockMvcBuilder<DefaultMockMvcBuilder>