Class WebTestClientAutoConfiguration
java.lang.Object
org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfiguration
@AutoConfiguration(after={org.springframework.boot.autoconfigure.http.codec.CodecsAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration.class})
@ConditionalOnClass({org.springframework.web.reactive.function.client.WebClient.class,org.springframework.test.web.reactive.server.WebTestClient.class})
@Import(org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientSecurityConfiguration.class)
@EnableConfigurationProperties
public class WebTestClientAutoConfiguration
extends Object
Auto-configuration for
WebTestClient
.- Since:
- 2.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionspringBootWebTestClientBuilderCustomizer
(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers) org.springframework.test.web.reactive.server.WebTestClient
webTestClient
(org.springframework.context.ApplicationContext applicationContext, List<org.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizer> customizers, List<org.springframework.test.web.reactive.server.MockServerConfigurer> configurers)
-
Constructor Details
-
WebTestClientAutoConfiguration
public WebTestClientAutoConfiguration()
-
-
Method Details
-
webTestClient
@Bean @ConditionalOnMissingBean @ConditionalOnBean(org.springframework.web.server.WebHandler.class) public org.springframework.test.web.reactive.server.WebTestClient webTestClient(org.springframework.context.ApplicationContext applicationContext, List<org.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizer> customizers, List<org.springframework.test.web.reactive.server.MockServerConfigurer> configurers) -
springBootWebTestClientBuilderCustomizer
@Bean @ConfigurationProperties(prefix="spring.test.webtestclient") public SpringBootWebTestClientBuilderCustomizer springBootWebTestClientBuilderCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers)
-