类 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
- 作者:
- Andy Wilkinson
-
构造器概要
构造器构造器说明SpringBootWebTestClientBuilderCustomizer(Collection<CodecCustomizer> codecCustomizers) Create a newSpringBootWebTestClientBuilderCustomizerthat will configure the builder's codecs using the givencodecCustomizers. -
方法概要
修饰符和类型方法说明voidcustomize(WebTestClient.Builder builder) Customize the givenbuilder.voidsetTimeout(Duration timeout)
-
构造器详细资料
-
SpringBootWebTestClientBuilderCustomizer
Create a newSpringBootWebTestClientBuilderCustomizerthat will configure the builder's codecs using the givencodecCustomizers.- 参数:
codecCustomizers- the codec customizers
-
-
方法详细资料
-
setTimeout
-
customize
从接口复制的说明:WebTestClientBuilderCustomizerCustomize the givenbuilder.- 指定者:
customize在接口中WebTestClientBuilderCustomizer- 参数:
builder- the builder
-