Uses of Interface
org.springframework.test.web.reactive.server.WebTestClient.Builder
Packages that use WebTestClient.Builder
Package
Description
Support for testing Spring WebFlux server endpoints via
WebTestClient.Support for testing Spring MVC applications via
RestTestClient with
MockMvc for server request handling.- 
Uses of WebTestClient.Builder in org.springframework.test.web.reactive.serverMethods in org.springframework.test.web.reactive.server that return WebTestClient.BuilderModifier and TypeMethodDescriptionWebTestClient.Builder.apiVersionInserter(@Nullable ApiVersionInserter apiVersionInserter) Configure anApiVersionInserterto abstract how an API version specified viaWebTestClient.RequestHeadersSpec.apiVersion(Object)is inserted into the request.WebTestClient.Builder.apply(WebTestClientConfigurer configurer) Apply the given configurer to this builder instance.Configure a base URI as described inWebClient.create(String).static WebTestClient.BuilderWebTestClient.bindToServer()This server setup option allows you to connect to a live server.static WebTestClient.BuilderWebTestClient.bindToServer(ClientHttpConnector connector) A variant ofWebTestClient.bindToServer()with a pre-configured connector.WebTestClient.Builder.clientConnector(ClientHttpConnector connector) Set theClientHttpConnectorto use.WebTestClient.Builder.codecs(Consumer<ClientCodecConfigurer> configurer) WebTestClient.MockServerSpec.configureClient()Proceed to configure and build the test client.WebTestClient.Builder.defaultApiVersion(Object version) Global option to specify an API version to add to every request, if not already set.WebTestClient.Builder.defaultCookie(String cookieName, String... cookieValues) Add the given cookie to all requests that haven't already added it.WebTestClient.Builder.defaultCookies(Consumer<MultiValueMap<String, String>> cookiesConsumer) Manipulate the default cookies with the given consumer.WebTestClient.Builder.defaultHeader(String headerName, String... headerValues) Add the given header to all requests that haven't added it.WebTestClient.Builder.defaultHeaders(Consumer<HttpHeaders> headersConsumer) Manipulate the default headers with the given consumer.WebTestClient.Builder.entityExchangeResultConsumer(Consumer<EntityExchangeResult<?>> consumer) Configure anEntityExchangeResultcallback that is invoked every time after a response is fully decoded to a single entity, to a List of entities, or to a byte[].WebTestClient.Builder.exchangeStrategies(ExchangeStrategies strategies) Configure theExchangeStrategiesto use.WebTestClient.Builder.filter(ExchangeFilterFunction filter) Add the given filter to the filter chain.WebTestClient.Builder.filters(Consumer<List<ExchangeFilterFunction>> filtersConsumer) Manipulate the filters with the given consumer.WebTestClient.mutate()Return a builder to mutate properties of this test client.WebTestClient.Builder.responseTimeout(Duration timeout) Max amount of time to wait for responses.WebTestClient.Builder.uriBuilderFactory(UriBuilderFactory uriBuilderFactory) Provide a pre-configuredUriBuilderFactoryinstance as an alternative to and effectively overridingWebTestClient.Builder.baseUrl(String).Methods in org.springframework.test.web.reactive.server with parameters of type WebTestClient.BuilderModifier and TypeMethodDescriptionvoidUserWebTestClientConfigurer.afterConfigurerAdded(WebTestClient.Builder builder, @Nullable WebHttpHandlerBuilder httpHandlerBuilder, @Nullable ClientHttpConnector connector) voidWebTestClientConfigurer.afterConfigurerAdded(WebTestClient.Builder builder, @Nullable WebHttpHandlerBuilder httpHandlerBuilder, @Nullable ClientHttpConnector connector) Use methods onWebTestClient.Builderto modify test client settings.
- 
Uses of WebTestClient.Builder in org.springframework.test.web.servlet.clientMethods in org.springframework.test.web.servlet.client that return WebTestClient.BuilderModifier and TypeMethodDescriptionstatic WebTestClient.BuilderBegin creating aWebTestClientby providing an already initializedMockMvcinstance to use as the server.MockMvcWebTestClient.MockMvcServerSpec.configureClient()Proceed to configure and build the test client.