类 MockMvcWebDriverAutoConfiguration
- java.lang.Object
- org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebDriverAutoConfiguration
@Configuration @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 SeleniumWebDriver
MockMVC integration.- 从以下版本开始:
- 1.4.0
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
方法详细资料
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)