@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={org.springframework.web.reactive.function.client.WebClient.class,org.springframework.test.web.reactive.server.WebTestClient.class}) @AutoConfigureAfter(value={CodecsAutoConfiguration.class,WebFluxAutoConfiguration.class}) @Import(value=org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientSecurityConfiguration.class) @EnableConfigurationProperties public class WebTestClientAutoConfiguration extends Object
WebTestClient
.Constructor and Description |
---|
WebTestClientAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
SpringBootWebTestClientBuilderCustomizer |
springBootWebTestClientBuilderCustomizer(ObjectProvider<CodecCustomizer> codecCustomizers) |
WebTestClient |
webTestClient(ApplicationContext applicationContext,
List<WebTestClientBuilderCustomizer> customizers,
List<MockServerConfigurer> configurers) |
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=org.springframework.web.server.WebHandler.class) public WebTestClient webTestClient(ApplicationContext applicationContext, List<WebTestClientBuilderCustomizer> customizers, List<MockServerConfigurer> configurers)
@Bean @ConfigurationProperties(prefix="spring.test.webtestclient") public SpringBootWebTestClientBuilderCustomizer springBootWebTestClientBuilderCustomizer(ObjectProvider<CodecCustomizer> codecCustomizers)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.