spring-framework / org.springframework.test.web.servlet.htmlunit.webdriver

Package org.springframework.test.web.servlet.htmlunit.webdriver

Types

MockMvcHtmlUnitDriverBuilder

open class MockMvcHtmlUnitDriverBuilder : MockMvcWebConnectionBuilderSupport<MockMvcHtmlUnitDriverBuilder>

MockMvcHtmlUnitDriverBuilder simplifies the building of an HtmlUnitDriver that delegates to MockMvc and optionally delegates to an actual connection for specific requests.

By default, the driver will delegate to MockMvc to handle requests to localhost and to a WebClient to handle any other URL (i.e. to perform an actual HTTP request).

WebConnectionHtmlUnitDriver

open class WebConnectionHtmlUnitDriver : HtmlUnitDriver

WebConnectionHtmlUnitDriver enables configuration of the WebConnection for an HtmlUnitDriver instance.

This is useful because it allows a org.springframework.test.web.servlet.htmlunit.MockMvcWebConnection to be injected.