public static interface WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>
Modifier and Type | Method and Description |
---|---|
<T extends B> |
apply(MockServerConfigurer configurer)
Shortcut for pre-packaged customizations to the mock server setup.
|
WebTestClient |
build()
Shortcut to build the test client.
|
WebTestClient.Builder |
configureClient()
Proceed to configure and build the test client.
|
<T extends B> |
webFilter(WebFilter... filter)
Register
WebFilter instances to add to the mock server. |
<T extends B> |
webSessionManager(WebSessionManager sessionManager)
Provide a session manager instance for the mock server.
|
<T extends B> T webFilter(WebFilter... filter)
WebFilter
instances to add to the mock server.filter
- one or more filters<T extends B> T webSessionManager(WebSessionManager sessionManager)
By default an instance of
DefaultWebSessionManager
is used.
sessionManager
- the session manager to use<T extends B> T apply(MockServerConfigurer configurer)
configurer
- the configurer to applyWebTestClient.Builder configureClient()
WebTestClient build()