Interface WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>
- Type Parameters:
- B- a self reference to the builder type
- All Known Subinterfaces:
- WebTestClient.ControllerSpec, WebTestClient.RouterFunctionSpec
- Enclosing interface:
- WebTestClient
public static interface WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>
Base specification for setting up tests without a server.
- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Brian Clozel, Sam Brannen, MichaĆ Rowicki
- 
Method SummaryModifier and TypeMethodDescription<T extends B>
 Tapply(MockServerConfigurer configurer) Shortcut for pre-packaged customizations to the mock server setup.build()Shortcut to build the test client.Proceed to configure and build the test client.<T extends B>
 TSet or reset SSL session information to assign to mock server requests.<T extends B>
 TRegisterWebFilterinstances to add to the mock server.<T extends B>
 TwebSessionManager(WebSessionManager sessionManager) Provide a session manager instance for the mock server.
- 
Method Details- 
webFilter
- 
webSessionManagerProvide a session manager instance for the mock server.By default an instance of DefaultWebSessionManageris used.- Parameters:
- sessionManager- the session manager to use
 
- 
sslInfo
- 
applyShortcut for pre-packaged customizations to the mock server setup.- Parameters:
- configurer- the configurer to apply
 
- 
configureClientWebTestClient.Builder configureClient()Proceed to configure and build the test client.
- 
buildWebTestClient build()Shortcut to build the test client.
 
-