Merge branch '2.7.x'

This commit is contained in:
Stephane Nicoll 2022-02-01 13:52:17 +01:00
commit b403877cc1
1 changed files with 2 additions and 4 deletions

View File

@ -94,8 +94,7 @@ class LocalHostWebConnectionHtmlUnitDriverTests {
MockEnvironment environment = new MockEnvironment();
LocalHostWebConnectionHtmlUnitDriver driver = new TestLocalHostWebConnectionHtmlUnitDriver(environment);
driver.get("/test");
then(this.webClient).should().getPage(isNull(),
requestToUrl(new URL("http://localhost:8080/test")));
then(this.webClient).should().getPage(isNull(), requestToUrl(new URL("http://localhost:8080/test")));
}
@Test
@ -104,8 +103,7 @@ class LocalHostWebConnectionHtmlUnitDriverTests {
environment.setProperty("local.server.port", "8181");
LocalHostWebConnectionHtmlUnitDriver driver = new TestLocalHostWebConnectionHtmlUnitDriver(environment);
driver.get("/test");
then(this.webClient).should().getPage(isNull(),
requestToUrl(new URL("http://localhost:8181/test")));
then(this.webClient).should().getPage(isNull(), requestToUrl(new URL("http://localhost:8181/test")));
}
private WebRequest requestToUrl(URL url) {