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 Summary

    Modifier and Type
    Method
    Description
    void
    afterConfigurerAdded(WebTestClient.Builder builder, org.springframework.web.server.adapter.WebHttpHandlerBuilder httpHandlerBuilder, org.springframework.http.client.reactive.ClientHttpConnector connector)
    Invoked once only, immediately (i.e.
  • Method Details

    • afterConfigurerAdded

      void afterConfigurerAdded(WebTestClient.Builder builder, @Nullable org.springframework.web.server.adapter.WebHttpHandlerBuilder httpHandlerBuilder, @Nullable org.springframework.http.client.reactive.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