Interface MockMvcWebTestClient.MockMvcServerSpec<B extends MockMvcWebTestClient.MockMvcServerSpec<B>>
- Type Parameters:
- B- a self reference to the builder type
- All Known Subinterfaces:
- MockMvcWebTestClient.ControllerSpec,- MockMvcWebTestClient.RouterFunctionSpec
- Enclosing interface:
- MockMvcWebTestClient
public static interface MockMvcWebTestClient.MockMvcServerSpec<B extends MockMvcWebTestClient.MockMvcServerSpec<B>>
Base specification for configuring 
MockMvc, and a simple facade
 around ConfigurableMockMvcBuilder.- 
Method SummaryModifier and TypeMethodDescription<T extends B>
 TalwaysExpect(ResultMatcher resultMatcher) Define a global expectation that should always be applied to every response.<T extends B>
 Tapply(MockMvcConfigurer configurer) Add aMockMvcConfigurerthat automates MockMvc setup.build()Shortcut to build the test client.Proceed to configure and build the test client.<T extends B>
 TdefaultRequest(RequestBuilder requestBuilder) Define default request properties that should be merged into all performed requests such that input from the client request override the default properties defined here.<T extends B>
 TAllow customization ofDispatcherServlet.<T extends B>
 TdispatchOptions(boolean dispatchOptions) Whether to handle HTTP OPTIONS requests.<T extends B>
 TAdd a filter for specific URL patterns.<T extends B>
 TAdd a global filter.
- 
Method Details- 
filtersAdd a global filter.This is delegated to ConfigurableMockMvcBuilder.addFilters(Filter...).
- 
filterAdd a filter for specific URL patterns.This is delegated to ConfigurableMockMvcBuilder.addFilter(Filter, String...).
- 
defaultRequestDefine default request properties that should be merged into all performed requests such that input from the client request override the default properties defined here.This is delegated to ConfigurableMockMvcBuilder.defaultRequest(RequestBuilder).
- 
alwaysExpectDefine a global expectation that should always be applied to every response.This is delegated to ConfigurableMockMvcBuilder.alwaysExpect(ResultMatcher).
- 
dispatchOptionsWhether to handle HTTP OPTIONS requests.This is delegated to ConfigurableMockMvcBuilder.dispatchOptions(boolean).
- 
dispatcherServletCustomizerAllow customization ofDispatcherServlet.This is delegated to ConfigurableMockMvcBuilder.addDispatcherServletCustomizer(DispatcherServletCustomizer).
- 
applyAdd aMockMvcConfigurerthat automates MockMvc setup.This is delegated to ConfigurableMockMvcBuilder.apply(MockMvcConfigurer).
- 
configureClientWebTestClient.Builder configureClient()Proceed to configure and build the test client.
- 
buildWebTestClient build()Shortcut to build the test client.
 
-