public class MockMvcHtmlUnitDriverBuilder extends MockMvcWebConnectionBuilderSupport<MockMvcHtmlUnitDriverBuilder>
Modifier | Constructor and Description |
---|---|
protected |
MockMvcHtmlUnitDriverBuilder(org.springframework.test.web.servlet.MockMvc mockMvc) |
protected |
MockMvcHtmlUnitDriverBuilder(org.springframework.web.context.WebApplicationContext context) |
protected |
MockMvcHtmlUnitDriverBuilder(org.springframework.web.context.WebApplicationContext context,
org.springframework.test.web.servlet.setup.MockMvcConfigurer configurer) |
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.htmlunit.HtmlUnitDriver |
configureDriver(WebConnectionHtmlUnitDriver driver)
Configures an existing WebConnectionHtmlUnitDriver.
|
org.openqa.selenium.htmlunit.HtmlUnitDriver |
createDriver()
Creates a new HtmlUnitDriver with the BrowserVersion set to CHROME.
|
MockMvcHtmlUnitDriverBuilder |
javascriptEnabled(boolean javascriptEnabled)
Specifies if JavaScript should be enabled or not.
|
static MockMvcHtmlUnitDriverBuilder |
mockMvcSetup(org.springframework.test.web.servlet.MockMvc mockMvc)
Creates a new instance with a MockMvc instance.
|
static MockMvcHtmlUnitDriverBuilder |
webAppContextSetup(org.springframework.web.context.WebApplicationContext context)
Creates a new instance with a WebApplicationContext.
|
static MockMvcHtmlUnitDriverBuilder |
webAppContextSetup(org.springframework.web.context.WebApplicationContext context,
org.springframework.test.web.servlet.setup.MockMvcConfigurer configurer)
Creates a new instance using a WebApplicationContext
|
alwaysUseMockMvc, contextPath, createConnection, useMockMvc, useMockMvcForHosts
protected MockMvcHtmlUnitDriverBuilder(org.springframework.test.web.servlet.MockMvc mockMvc)
protected MockMvcHtmlUnitDriverBuilder(org.springframework.web.context.WebApplicationContext context)
protected MockMvcHtmlUnitDriverBuilder(org.springframework.web.context.WebApplicationContext context, org.springframework.test.web.servlet.setup.MockMvcConfigurer configurer)
public static MockMvcHtmlUnitDriverBuilder webAppContextSetup(org.springframework.web.context.WebApplicationContext context)
context
- the WebApplicationContext to use. Cannot be null.public static MockMvcHtmlUnitDriverBuilder webAppContextSetup(org.springframework.web.context.WebApplicationContext context, org.springframework.test.web.servlet.setup.MockMvcConfigurer configurer)
context
- the WebApplicationContext to create a MockMvc instance from.configurer
- the MockMvcConfigurer to apply
Cannot be null.public static MockMvcHtmlUnitDriverBuilder mockMvcSetup(org.springframework.test.web.servlet.MockMvc mockMvc)
mockMvc
- the MockMvc to use. Cannot be null.public MockMvcHtmlUnitDriverBuilder javascriptEnabled(boolean javascriptEnabled)
javascriptEnabled
- if JavaScript should be enabled or not.public org.openqa.selenium.htmlunit.HtmlUnitDriver createDriver()
configureDriver(WebConnectionHtmlUnitDriver)
public org.openqa.selenium.htmlunit.HtmlUnitDriver configureDriver(WebConnectionHtmlUnitDriver driver)
driver
- the WebConnectionHtmlUnitDriver to configure