@Configuration @ConditionalOnClass(value=org.openqa.selenium.htmlunit.HtmlUnitDriver.class) @ConditionalOnProperty(prefix="spring.test.mockmvc.webdriver", name="enabled", matchIfMissing=true) public class MockMvcWebDriverAutoConfiguration extends Object
WebDriver
MockMVC integration.Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.htmlunit.HtmlUnitDriver |
htmlUnitDriver(MockMvcHtmlUnitDriverBuilder builder) |
MockMvcHtmlUnitDriverBuilder |
mockMvcHtmlUnitDriverBuilder(MockMvc mockMvc) |
@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)
@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 © 2016 Pivotal Software, Inc.. All rights reserved.