Class SpringBootWebTestClientBuilderCustomizer
java.lang.Object
org.springframework.boot.test.autoconfigure.web.reactive.SpringBootWebTestClientBuilderCustomizer
- All Implemented Interfaces:
org.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizer
public class SpringBootWebTestClientBuilderCustomizer
extends Object
implements org.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizer
WebTestClientBuilderCustomizer
for a typical Spring Boot application. Usually
applied automatically via
@AutoConfigureWebTestClient
, but may also be used
directly.- Since:
- 2.0.0
-
Constructor Summary
ConstructorDescriptionSpringBootWebTestClientBuilderCustomizer
(Collection<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers) Create a newSpringBootWebTestClientBuilderCustomizer
that will configure the builder's codecs using the givencodecCustomizers
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(org.springframework.test.web.reactive.server.WebTestClient.Builder builder) void
setTimeout
(Duration timeout)
-
Constructor Details
-
SpringBootWebTestClientBuilderCustomizer
public SpringBootWebTestClientBuilderCustomizer(Collection<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers) Create a newSpringBootWebTestClientBuilderCustomizer
that will configure the builder's codecs using the givencodecCustomizers
.- Parameters:
codecCustomizers
- the codec customizers
-
-
Method Details
-
setTimeout
-
customize
public void customize(org.springframework.test.web.reactive.server.WebTestClient.Builder builder) - Specified by:
customize
in interfaceorg.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizer
-