类 SpringBootWebTestClientBuilderCustomizer
- java.lang.Object
- org.springframework.boot.test.autoconfigure.web.reactive.SpringBootWebTestClientBuilderCustomizer
- 所有已实现的接口:
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.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 SpringBootWebTestClientBuilderCustomizer(Collection<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers)
Create a newSpringBootWebTestClientBuilderCustomizer
that will configure the builder's codecs using the givencodecCustomizers
.
构造器详细资料
SpringBootWebTestClientBuilderCustomizer
public SpringBootWebTestClientBuilderCustomizer(Collection<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers)
Create a newSpringBootWebTestClientBuilderCustomizer
that will configure the builder's codecs using the givencodecCustomizers
.- 参数:
codecCustomizers
- the codec customizers
方法详细资料
setTimeout
public void setTimeout(Duration timeout)
customize
public void customize(org.springframework.test.web.reactive.server.WebTestClient.Builder builder)
从接口复制的说明:WebTestClientBuilderCustomizer
Customize the givenbuilder
.- 指定者:
customize
在接口中WebTestClientBuilderCustomizer
- 参数:
builder
- the builder