类 DefaultMockMvcBuilder

所有已实现的接口:
MockMvcBuilder, ConfigurableMockMvcBuilder<DefaultMockMvcBuilder>

public class DefaultMockMvcBuilder extends AbstractMockMvcBuilder<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