Class MockMvcWebClientAutoConfiguration
java.lang.Object
org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebClientAutoConfiguration
@AutoConfiguration(after=MockMvcAutoConfiguration.class)
@ConditionalOnClass(org.htmlunit.WebClient.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 TypeMethodDescriptionorg.htmlunit.WebClient
htmlUnitWebClient
(MockMvcWebClientBuilder builder) mockMvcWebClientBuilder
(MockMvc mockMvc, Environment environment)
-
Constructor Details
-
MockMvcWebClientAutoConfiguration
public MockMvcWebClientAutoConfiguration()
-
-
Method Details
-
mockMvcWebClientBuilder
@Bean @ConditionalOnMissingBean({org.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 org.htmlunit.WebClient htmlUnitWebClient(MockMvcWebClientBuilder builder)
-