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.Constructor and Description |
---|
SpringBootWebTestClientBuilderCustomizer(Collection<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(WebTestClient.Builder builder)
Customize the given
builder . |
void |
setTimeout(Duration timeout) |
public SpringBootWebTestClientBuilderCustomizer(Collection<CodecCustomizer> codecCustomizers)
SpringBootWebTestClientBuilderCustomizer
that will configure
the builder's codecs using the given codecCustomizers
.codecCustomizers
- the codec customizerspublic void setTimeout(Duration timeout)
public void customize(WebTestClient.Builder builder)
WebTestClientBuilderCustomizer
builder
.customize
in interface WebTestClientBuilderCustomizer
builder
- the builderCopyright © 2019 Pivotal Software, Inc.. All rights reserved.