@Configuration @ConditionalOnClass(value=com.gargoylesoftware.htmlunit.WebClient.class) @ConditionalOnProperty(prefix="spring.test.mockmvc.webclient", name="enabled", matchIfMissing=true) public class MockMvcWebClientAutoConfiguration extends Object
WebClient
MockMVC integration.Modifier and Type | Method and Description |
---|---|
com.gargoylesoftware.htmlunit.WebClient |
htmlUnitWebClient(MockMvcWebClientBuilder builder) |
MockMvcWebClientBuilder |
mockMvcWebClientBuilder(MockMvc mockMvc) |
@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)
@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.