接口 WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>
- 类型参数:
B
- a self reference to the builder type
- 封闭接口:
- WebTestClient
public static interface WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>
Base specification for setting up tests without a server.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 <T extends B>
Tapply(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>
TwebFilter(WebFilter... filter)
RegisterWebFilter
instances to add to the mock server.<T extends B>
TwebSessionManager(WebSessionManager sessionManager)
Provide a session manager instance for the mock server.
方法详细资料
webFilter
<T extends B> T webFilter(WebFilter... filter)
RegisterWebFilter
instances to add to the mock server.- 参数:
filter
- one or more filters
webSessionManager
<T extends B> T webSessionManager(WebSessionManager sessionManager)
Provide a session manager instance for the mock server.By default an instance of
DefaultWebSessionManager
is used.- 参数:
sessionManager
- the session manager to use
apply
<T extends B> T apply(MockServerConfigurer configurer)
Shortcut for pre-packaged customizations to the mock server setup.- 参数:
configurer
- the configurer to apply
configureClient
WebTestClient.Builder configureClient()
Proceed to configure and build the test client.
build
WebTestClient build()
Shortcut to build the test client.