Skip navigation links
Spring Test HtmlUnit
A C D G H J M O S U W 

A

alwaysUseMockMvc() - Method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnectionBuilderSupport
Always use MockMvc no matter what the request looks like.

C

configureDriver(WebConnectionHtmlUnitDriver) - Method in class org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder
Configures an existing WebConnectionHtmlUnitDriver.
configureWebClient(WebClient) - Method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder
Creates a WebClient that uses the provided MockMvc for any matching requests and the provided WebClient for any other request.
configureWebClient(WebClient) - Method in class org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
Subclasses can override this method to customise the WebClient that the HtmlUnit driver uses.
contextPath(String) - Method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnectionBuilderSupport
The context path to use.
createConnection(WebConnection) - Method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnectionBuilderSupport
Creates a new WebConnection that will use a MockMvc instance if one of the specified WebRequestMatcher matches.
createDriver() - Method in class org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder
Creates a new HtmlUnitDriver with the BrowserVersion set to CHROME.
createWebClient() - Method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder
Creates a WebClient that uses the provided MockMvc for any matching requests and a WebClient with all the default settings for any other request.

D

DelegateWebConnection(WebRequestMatcher, WebConnection) - Constructor for class org.springframework.test.web.servlet.htmlunit.DelegatingWebConnection.DelegateWebConnection
 
DelegatingWebConnection - Class in org.springframework.test.web.servlet.htmlunit
Implementation of WebConnection that allows delegating to various WebConnection implementations.
DelegatingWebConnection(WebConnection, List<DelegatingWebConnection.DelegateWebConnection>) - Constructor for class org.springframework.test.web.servlet.htmlunit.DelegatingWebConnection
 
DelegatingWebConnection(WebConnection, DelegatingWebConnection.DelegateWebConnection...) - Constructor for class org.springframework.test.web.servlet.htmlunit.DelegatingWebConnection
 
DelegatingWebConnection.DelegateWebConnection - Class in org.springframework.test.web.servlet.htmlunit
 

G

getResponse(WebRequest) - Method in class org.springframework.test.web.servlet.htmlunit.DelegatingWebConnection
 
getResponse(WebRequest) - Method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnection
 
getWebConnection() - Method in class org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
Allows accessing the current WebConnection

H

HostRequestMatcher - Class in org.springframework.test.web.servlet.htmlunit.matchers
An implementation of WebRequestMatcher that allows matching on the host and optionally the port of WebRequest#getUrl().
HostRequestMatcher(String...) - Constructor for class org.springframework.test.web.servlet.htmlunit.matchers.HostRequestMatcher
Creates a new instance

J

javascriptEnabled(boolean) - Method in class org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder
Specifies if JavaScript should be enabled or not.

M

matches(WebRequest) - Method in class org.springframework.test.web.servlet.htmlunit.matchers.HostRequestMatcher
 
matches(WebRequest) - Method in class org.springframework.test.web.servlet.htmlunit.matchers.UrlRegexRequestMatcher
 
matches(WebRequest) - Method in interface org.springframework.test.web.servlet.htmlunit.matchers.WebRequestMatcher
Return true if matches on WebRequest, else false
MockMvcHtmlUnitDriverBuilder - Class in org.springframework.test.web.servlet.htmlunit.webdriver
Convenience class for building an HtmlUnitDriver that will delegate to MockMvc and optionally delegate to an actual connection for specific requests.
MockMvcHtmlUnitDriverBuilder(MockMvc) - Constructor for class org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder
 
MockMvcHtmlUnitDriverBuilder(WebApplicationContext) - Constructor for class org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder
 
MockMvcHtmlUnitDriverBuilder(WebApplicationContext, MockMvcConfigurer) - Constructor for class org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder
 
mockMvcSetup(MockMvc) - Static method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder
Creates a new instance with a MockMvc instance.
mockMvcSetup(MockMvc) - Static method in class org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder
Creates a new instance with a MockMvc instance.
MockMvcWebClientBuilder - Class in org.springframework.test.web.servlet.htmlunit
Simplifies creating a WebClient that delegates to a MockMvc instance.
MockMvcWebClientBuilder(MockMvc) - Constructor for class org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder
 
MockMvcWebClientBuilder(WebApplicationContext) - Constructor for class org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder
 
MockMvcWebClientBuilder(WebApplicationContext, MockMvcConfigurer) - Constructor for class org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder
 
MockMvcWebConnection - Class in org.springframework.test.web.servlet.htmlunit
Allows MockMvc to transform a WebRequest into a WebResponse.
MockMvcWebConnection(MockMvc) - Constructor for class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnection
Creates a new instance that assumes the context root of the application is "".
MockMvcWebConnection(MockMvc, String) - Constructor for class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnection
Creates a new instance with a specified context root.
MockMvcWebConnectionBuilderSupport<T extends MockMvcWebConnectionBuilderSupport<T>> - Class in org.springframework.test.web.servlet.htmlunit
Makes it easy to create a WebConnection that uses MockMvc and optionally delegates to a real WebConnection for specific requests.
MockMvcWebConnectionBuilderSupport(MockMvc) - Constructor for class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnectionBuilderSupport
Creates a new instance using a MockMvc instance
MockMvcWebConnectionBuilderSupport(WebApplicationContext) - Constructor for class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnectionBuilderSupport
Creates a new instance using a WebApplicationContext
MockMvcWebConnectionBuilderSupport(WebApplicationContext, MockMvcConfigurer) - Constructor for class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnectionBuilderSupport
Creates a new instance using a WebApplicationContext
modifyWebClient(WebClient) - Method in class org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
Captures the WebClient that is used so that its WebConnection is accessible.

O

org.springframework.test.web.servlet.htmlunit - package org.springframework.test.web.servlet.htmlunit
 
org.springframework.test.web.servlet.htmlunit.matchers - package org.springframework.test.web.servlet.htmlunit.matchers
 
org.springframework.test.web.servlet.htmlunit.webdriver - package org.springframework.test.web.servlet.htmlunit.webdriver
 

S

setWebConnection(WebConnection) - Method in class org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
Sets the WebConnection to be used.

U

UrlRegexRequestMatcher - Class in org.springframework.test.web.servlet.htmlunit.matchers
An implementation of WebRequestMatcher that allows matching on WebRequest#getUrl().toExternalForm() using a regular expression.
UrlRegexRequestMatcher(String) - Constructor for class org.springframework.test.web.servlet.htmlunit.matchers.UrlRegexRequestMatcher
 
UrlRegexRequestMatcher(Pattern) - Constructor for class org.springframework.test.web.servlet.htmlunit.matchers.UrlRegexRequestMatcher
 
useMockMvc(WebRequestMatcher...) - Method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnectionBuilderSupport
Add additional WebRequestMatcher instances that if return true will ensure MockMvc is used.
useMockMvcForHosts(String...) - Method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebConnectionBuilderSupport
Add additional WebRequestMatcher instances that will return true if the host matches.

W

webAppContextSetup(WebApplicationContext) - Static method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder
Creates a new instance with a WebApplicationContext.
webAppContextSetup(WebApplicationContext, MockMvcConfigurer) - Static method in class org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder
Creates a new instance using a WebApplicationContext
webAppContextSetup(WebApplicationContext) - Static method in class org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder
Creates a new instance with a WebApplicationContext.
webAppContextSetup(WebApplicationContext, MockMvcConfigurer) - Static method in class org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDriverBuilder
Creates a new instance using a WebApplicationContext
WebConnectionHtmlUnitDriver - Class in org.springframework.test.web.servlet.htmlunit.webdriver
Allows configuring the WebConnection for an HtmlUnitDriver instance.
WebConnectionHtmlUnitDriver(BrowserVersion) - Constructor for class org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
 
WebConnectionHtmlUnitDriver() - Constructor for class org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
 
WebConnectionHtmlUnitDriver(boolean) - Constructor for class org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
 
WebConnectionHtmlUnitDriver(Capabilities) - Constructor for class org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
 
WebRequestMatcher - Interface in org.springframework.test.web.servlet.htmlunit.matchers
Strategy to match on a WebRequest
A C D G H J M O S U W 
Skip navigation links
Spring Test HtmlUnit