Interface 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.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- See Also:
MockServerConfigurer
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafterConfigurerAdded(WebTestClient.Builder builder, WebHttpHandlerBuilder httpHandlerBuilder, ClientHttpConnector connector)Invoked once only, immediately (i.e.
Method Detail
afterConfigurerAdded
void afterConfigurerAdded(WebTestClient.Builder builder, @Nullable WebHttpHandlerBuilder httpHandlerBuilder, @Nullable ClientHttpConnector connector)
Invoked once only, immediately (i.e. before this method returns).- Parameters:
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