public class SpringBootWebTestClientBuilderCustomizer
extends java.lang.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.| Constructor and Description |
|---|
SpringBootWebTestClientBuilderCustomizer(java.util.Collection<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers)
Create a new
SpringBootWebTestClientBuilderCustomizer that will configure
the builder's codecs using the given codecCustomizers. |
| Modifier and Type | Method and Description |
|---|---|
void |
customize(org.springframework.test.web.reactive.server.WebTestClient.Builder builder) |
void |
setTimeout(java.time.Duration timeout) |
public SpringBootWebTestClientBuilderCustomizer(java.util.Collection<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers)
SpringBootWebTestClientBuilderCustomizer that will configure
the builder's codecs using the given codecCustomizers.codecCustomizers - the codec customizerspublic void setTimeout(java.time.Duration timeout)
public void customize(org.springframework.test.web.reactive.server.WebTestClient.Builder builder)
customize in interface org.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizer