Class MockMvcWebDriverAutoConfiguration
java.lang.Object
org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebDriverAutoConfiguration
@AutoConfiguration(after=MockMvcAutoConfiguration.class)
@ConditionalOnClass(org.openqa.selenium.htmlunit.HtmlUnitDriver.class)
@ConditionalOnProperty(prefix="spring.test.mockmvc.webdriver",
name="enabled",
matchIfMissing=true)
public class MockMvcWebDriverAutoConfiguration
extends Object
Auto-configuration for Selenium
WebDriver
MockMVC integration.- Since:
- 1.4.0
- Author:
- Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.htmlunit.HtmlUnitDriver
mockMvcHtmlUnitDriverBuilder
(MockMvc mockMvc, Environment environment)
-
Constructor Details
-
MockMvcWebDriverAutoConfiguration
public MockMvcWebDriverAutoConfiguration()
-
-
Method Details
-
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 MockMvcHtmlUnitDriverBuilder mockMvcHtmlUnitDriverBuilder(MockMvc mockMvc, Environment environment) -
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(MockMvcHtmlUnitDriverBuilder builder)
-