@Configuration @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(org.springframework.beans.factory.ObjectProvider<CodecCustomizer> codecCustomizers) |
org.springframework.test.web.reactive.server.WebTestClient |
webTestClient(org.springframework.context.ApplicationContext applicationContext,
List<WebTestClientBuilderCustomizer> customizers,
List<org.springframework.test.web.reactive.server.MockServerConfigurer> configurers) |
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=org.springframework.web.server.WebHandler.class) public org.springframework.test.web.reactive.server.WebTestClient webTestClient(org.springframework.context.ApplicationContext applicationContext, List<WebTestClientBuilderCustomizer> customizers, List<org.springframework.test.web.reactive.server.MockServerConfigurer> configurers)
@Bean @ConfigurationProperties(prefix="spring.test.webtestclient") public SpringBootWebTestClientBuilderCustomizer springBootWebTestClientBuilderCustomizer(org.springframework.beans.factory.ObjectProvider<CodecCustomizer> codecCustomizers)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.