接口 WebTestClientConfigurer
public interface WebTestClientConfigurer
Contract that frameworks or applications can use to pre-package a set of customizations to aWebTestClient.Builderand expose that as a shortcut.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
- 另请参阅:
MockServerConfigurer
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidafterConfigurerAdded(WebTestClient.Builder builder, WebHttpHandlerBuilder httpHandlerBuilder, ClientHttpConnector connector)Invoked once only, immediately (i.e. before this method returns).
方法详细资料
afterConfigurerAdded
void afterConfigurerAdded(WebTestClient.Builder builder, @Nullable WebHttpHandlerBuilder httpHandlerBuilder, @Nullable ClientHttpConnector connector)
Invoked once only, immediately (i.e. before this method returns).- 参数:
builder- the WebTestClient builder to make changes tohttpHandlerBuilder- the builder for the "mock server" HttpHandler this client was configured for "mock server" testingconnector- the connector for "live" integration tests if this server was configured for live integration testing