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

build

open fun build(): HtmlUnitDriver

Build the HtmlUnitDriver configured via this builder.

The returned driver will use the configured MockMvc instance for processing any WebRequestMatcher requests and a delegate HtmlUnitDriver for all other requests.

If a delegate has been explicitly configured, it will be used; otherwise, a default WebConnectionHtmlUnitDriver with the BrowserVersion set to CHROME will be configured as the delegate.

Return
the HtmlUnitDriver to use

See Also
#withDelegate(WebConnectionHtmlUnitDriver)