@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.openqa.selenium.htmlunit.HtmlUnitDriver.class) @AutoConfigureAfter(value=MockMvcAutoConfiguration.class) @ConditionalOnProperty(prefix="spring.test.mockmvc.webdriver", name="enabled", matchIfMissing=true) public class MockMvcWebDriverAutoConfiguration extends Object
WebDriver
MockMVC integration.Constructor and Description |
---|
MockMvcWebDriverAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.htmlunit.HtmlUnitDriver |
htmlUnitDriver(MockMvcHtmlUnitDriverBuilder builder) |
MockMvcHtmlUnitDriverBuilder |
mockMvcHtmlUnitDriverBuilder(MockMvc mockMvc,
Environment environment) |
@Bean @ConditionalOnMissingBean(value={org.openqa.selenium.WebDriver.class,org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder.class}) @ConditionalOnBean(value=org.springframework.test.web.servlet.MockMvc.class) public MockMvcHtmlUnitDriverBuilder mockMvcHtmlUnitDriverBuilder(MockMvc mockMvc, Environment environment)
@Bean @ConditionalOnMissingBean(value=org.openqa.selenium.WebDriver.class) @ConditionalOnBean(value=org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder.class) public org.openqa.selenium.htmlunit.HtmlUnitDriver htmlUnitDriver(MockMvcHtmlUnitDriverBuilder builder)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.