@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(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,
org.springframework.core.env.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 org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder mockMvcHtmlUnitDriverBuilder(org.springframework.test.web.servlet.MockMvc mockMvc, org.springframework.core.env.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(org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder builder)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.