Class SpringBootWebTestClientBuilderCustomizer
- java.lang.Object
- org.springframework.boot.test.autoconfigure.web.reactive.SpringBootWebTestClientBuilderCustomizer
- All Implemented Interfaces:
WebTestClientBuilderCustomizer
public class SpringBootWebTestClientBuilderCustomizer extends Object implements 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
Constructors Constructor Description SpringBootWebTestClientBuilderCustomizer(Collection<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers)
Create a newSpringBootWebTestClientBuilderCustomizer
that will configure the builder's codecs using the givencodecCustomizers
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customize(org.springframework.test.web.reactive.server.WebTestClient.Builder builder)
Customize the givenbuilder
.void
setTimeout(Duration timeout)
Constructor Detail
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 Detail
setTimeout
public void setTimeout(Duration timeout)
customize
public void customize(org.springframework.test.web.reactive.server.WebTestClient.Builder builder)
Description copied from interface:WebTestClientBuilderCustomizer
Customize the givenbuilder
.- Specified by:
customize
in interfaceWebTestClientBuilderCustomizer
- Parameters:
builder
- the builder