@Configuration @ConditionalOnClass(value=com.gargoylesoftware.htmlunit.WebClient.class) @AutoConfigureAfter(value=MockMvcAutoConfiguration.class) @ConditionalOnProperty(prefix="spring.test.mockmvc.webclient", name="enabled", matchIfMissing=true) public class MockMvcWebClientAutoConfiguration extends Object
WebClient
MockMVC integration.Constructor and Description |
---|
MockMvcWebClientAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
com.gargoylesoftware.htmlunit.WebClient |
htmlUnitWebClient(MockMvcWebClientBuilder builder) |
MockMvcWebClientBuilder |
mockMvcWebClientBuilder(MockMvc mockMvc,
Environment environment) |
@Bean @ConditionalOnMissingBean(value={com.gargoylesoftware.htmlunit.WebClient.class,org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder.class}) @ConditionalOnBean(value=org.springframework.test.web.servlet.MockMvc.class) public MockMvcWebClientBuilder mockMvcWebClientBuilder(MockMvc mockMvc, Environment environment)
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder.class) public com.gargoylesoftware.htmlunit.WebClient htmlUnitWebClient(MockMvcWebClientBuilder builder)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.