Interface WebTestClientConfigurer


public interface WebTestClientConfigurer
Contract that frameworks or applications can use to pre-package a set of customizations to a WebTestClient.Builder and expose that as a shortcut.
Since:
5.0
Author:
Rossen Stoyanchev
See Also:
  • Method Details

    • 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 to
      httpHandlerBuilder - the builder for the "mock server" HttpHandler this client was configured for "mock server" testing
      connector - the connector for "live" integration tests if this server was configured for live integration testing