类 MockMvcBuilderSupport
- java.lang.Object
- org.springframework.test.web.servlet.MockMvcBuilderSupport
- 直接已知子类:
AbstractMockMvcBuilder
public abstract class MockMvcBuilderSupport extends Object
Base class for MockMvc builder implementations, providing the capability to create aMockMvc
instance.DefaultMockMvcBuilder
, which derives from this class, provides a concretebuild
method, and delegates to abstract methods to obtain aWebApplicationContext
.- 从以下版本开始:
- 3.2
- 作者:
- Rossen Stoyanchev, Rob Winch, Stephane Nicoll
构造器概要
构造器 构造器 说明 MockMvcBuilderSupport()
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 protected MockMvc
createMockMvc(Filter[] filters, MockServletConfig servletConfig, WebApplicationContext webAppContext, RequestBuilder defaultRequestBuilder, List<ResultMatcher> globalResultMatchers, List<ResultHandler> globalResultHandlers, Boolean dispatchOptions)
已过时。protected MockMvc
createMockMvc(Filter[] filters, MockServletConfig servletConfig, WebApplicationContext webAppContext, RequestBuilder defaultRequestBuilder, List<ResultMatcher> globalResultMatchers, List<ResultHandler> globalResultHandlers, List<DispatcherServletCustomizer> dispatcherServletCustomizers)
构造器详细资料
MockMvcBuilderSupport
public MockMvcBuilderSupport()
方法详细资料
createMockMvc
@Deprecated protected final MockMvc createMockMvc(Filter[] filters, MockServletConfig servletConfig, WebApplicationContext webAppContext, RequestBuilder defaultRequestBuilder, List<ResultMatcher> globalResultMatchers, List<ResultHandler> globalResultHandlers, Boolean dispatchOptions)
已过时。
createMockMvc
protected final MockMvc createMockMvc(Filter[] filters, MockServletConfig servletConfig, WebApplicationContext webAppContext, RequestBuilder defaultRequestBuilder, List<ResultMatcher> globalResultMatchers, List<ResultHandler> globalResultHandlers, List<DispatcherServletCustomizer> dispatcherServletCustomizers)