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(WebApplicationContext webAppContext)
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
initWebAppContext()
A method to obtain the WebApplicationContext to be passed to the DispatcherServlet.
|
addFilter, addFilters, alwaysDo, alwaysExpect, apply, build, defaultRequest, dispatchOptions
createMockMvc
protected DefaultMockMvcBuilder(WebApplicationContext webAppContext)
protected WebApplicationContext initWebAppContext()
AbstractMockMvcBuilder
AbstractMockMvcBuilder.build()
before the
MockMvc
instance is created.initWebAppContext
in class AbstractMockMvcBuilder<DefaultMockMvcBuilder>