diff --git a/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/htmlunit/webdriver/LocalHostWebConnectionHtmlUnitDriverTests.java b/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/htmlunit/webdriver/LocalHostWebConnectionHtmlUnitDriverTests.java index 4efbc280f42..d6d300913b0 100644 --- a/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/htmlunit/webdriver/LocalHostWebConnectionHtmlUnitDriverTests.java +++ b/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/htmlunit/webdriver/LocalHostWebConnectionHtmlUnitDriverTests.java @@ -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) {