use of org.springframework.test.web.servlet.htmlunit.HostRequestMatcher in project spring-security by spring-projects.
the class WebTestClientHtmlUnitDriverBuilder method build.
public WebDriver build() {
WebConnectionHtmlUnitDriver driver = new WebConnectionHtmlUnitDriver();
WebClient webClient = driver.getWebClient();
WebTestClientWebConnection webClientConnection = new WebTestClientWebConnection(this.webTestClient, webClient);
WebConnection connection = new DelegatingWebConnection(driver.getWebConnection(), new DelegateWebConnection(new HostRequestMatcher("localhost"), webClientConnection));
driver.setWebConnection(connection);
return driver;
}
Aggregations