类 DefaultMockMvcBuilder
java.lang.Object
cn.taketoday.test.web.servlet.MockMvcBuilderSupport
cn.taketoday.test.web.servlet.setup.AbstractMockMvcBuilder<DefaultMockMvcBuilder>
cn.taketoday.test.web.servlet.setup.DefaultMockMvcBuilder
A concrete implementation of
AbstractMockMvcBuilder that provides
the WebApplicationContext supplied to it as a constructor argument.
In addition, if the ServletContext in the supplied
WebApplicationContext does not contain an entry for the
WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE
key, the root WebApplicationContext will be detected and stored
in the ServletContext under the
ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE key.
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Rob Winch, Sam Brannen
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protectedDefaultMockMvcBuilder(cn.taketoday.web.servlet.WebApplicationContext webAppContext) Protected constructor. -
方法概要
修饰符和类型方法说明protected cn.taketoday.web.servlet.WebApplicationContextA method to obtain theWebApplicationContextto be passed to theDispatcherServlet.从类继承的方法 cn.taketoday.test.web.servlet.setup.AbstractMockMvcBuilder
addDispatcherServletCustomizer, addFilter, addFilter, addFilters, alwaysDo, alwaysExpect, apply, build, defaultRequest, defaultResponseCharacterEncoding, self从类继承的方法 cn.taketoday.test.web.servlet.MockMvcBuilderSupport
createMockMvc, createMockMvc从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.test.web.servlet.MockMvcBuilder
perform
-
字段详细资料
-
webAppContext
private final cn.taketoday.web.servlet.WebApplicationContext webAppContext
-
-
构造器详细资料
-
DefaultMockMvcBuilder
protected DefaultMockMvcBuilder(cn.taketoday.web.servlet.WebApplicationContext webAppContext) Protected constructor. Not intended for direct instantiation.
-
-
方法详细资料
-
initWebAppContext
protected cn.taketoday.web.servlet.WebApplicationContext initWebAppContext()从类复制的说明:AbstractMockMvcBuilderA method to obtain theWebApplicationContextto be passed to theDispatcherServlet. Invoked fromAbstractMockMvcBuilder.build()before theMockMvcinstance is created.
-