Class AbstractMockMvcBuilder<B extends AbstractMockMvcBuilder<B>>

java.lang.Object
org.springframework.test.web.servlet.MockMvcBuilderSupport
org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder<B>
Type Parameters:
B - a self reference to the builder type
All Implemented Interfaces:
MockMvcBuilder, ConfigurableMockMvcBuilder<B>
Direct Known Subclasses:
DefaultMockMvcBuilder, RouterFunctionMockMvcBuilder, StandaloneMockMvcBuilder

public abstract class AbstractMockMvcBuilder<B extends AbstractMockMvcBuilder<B>> extends MockMvcBuilderSupport implements ConfigurableMockMvcBuilder<B>
Abstract implementation of MockMvcBuilder with common methods for configuring filters, default request properties, global expectations and global result actions.

Subclasses can use different strategies to prepare the Spring WebApplicationContext that will be passed to the DispatcherServlet.

Since:
4.0
Author:
Rossen Stoyanchev, Stephane Nicoll, Sam Brannen