Class MockMvcWebClientAutoConfiguration
java.lang.Object
org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebClientAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(com.gargoylesoftware.htmlunit.WebClient.class)
@AutoConfigureAfter(MockMvcAutoConfiguration.class)
@ConditionalOnProperty(prefix="spring.test.mockmvc.webclient",
name="enabled",
matchIfMissing=true)
public class MockMvcWebClientAutoConfiguration
extends Object
Auto-configuration for HtmlUnit
WebClient
MockMVC integration.- Since:
- 1.4.0
- Author:
- Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.gargoylesoftware.htmlunit.WebClient
htmlUnitWebClient
(MockMvcWebClientBuilder builder) mockMvcWebClientBuilder
(MockMvc mockMvc, Environment environment)
-
Constructor Details
-
MockMvcWebClientAutoConfiguration
public MockMvcWebClientAutoConfiguration()
-
-
Method Details
-
mockMvcWebClientBuilder
@Bean @ConditionalOnMissingBean({com.gargoylesoftware.htmlunit.WebClient.class,org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder.class}) @ConditionalOnBean(org.springframework.test.web.servlet.MockMvc.class) public MockMvcWebClientBuilder mockMvcWebClientBuilder(MockMvc mockMvc, Environment environment) -
htmlUnitWebClient
@Bean @ConditionalOnMissingBean @ConditionalOnBean(org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder.class) public com.gargoylesoftware.htmlunit.WebClient htmlUnitWebClient(MockMvcWebClientBuilder builder)
-