Class MockMvcWebDriverAutoConfiguration
- java.lang.Object
- org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebDriverAutoConfiguration
@Configuration @ConditionalOnClass(org.openqa.selenium.htmlunit.HtmlUnitDriver.class) @AutoConfigureAfter(MockMvcAutoConfiguration.class) @ConditionalOnProperty(prefix="spring.test.mockmvc.webdriver", name="enabled", matchIfMissing=true) public class MockMvcWebDriverAutoConfiguration extends Object
Auto-configuration for SeleniumWebDriver
MockMVC integration.- Since:
- 1.4.0
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.htmlunit.HtmlUnitDriver
htmlUnitDriver(org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder builder)
org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder
mockMvcHtmlUnitDriverBuilder(org.springframework.test.web.servlet.MockMvc mockMvc)
Method Detail
mockMvcHtmlUnitDriverBuilder
@Bean @ConditionalOnMissingBean({org.openqa.selenium.WebDriver.class,org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder.class}) @ConditionalOnBean(org.springframework.test.web.servlet.MockMvc.class) public org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder mockMvcHtmlUnitDriverBuilder(org.springframework.test.web.servlet.MockMvc mockMvc)
htmlUnitDriver
@Bean @ConditionalOnMissingBean(org.openqa.selenium.WebDriver.class) @ConditionalOnBean(org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder.class) public org.openqa.selenium.htmlunit.HtmlUnitDriver htmlUnitDriver(org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder builder)