diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 4ac2a43fc9..b5748f3acc 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -89,7 +89,7 @@ 2.4.7 2.3.13 2.3.3 - 2.21 + 2.23 4.1.2 4.5.2 4.4.5 @@ -139,6 +139,7 @@ 2.0.8.RELEASE 2.0.7.RELEASE 2.53.1 + 2.23.2 2.2.2 3.1.0 1.1.1 @@ -1923,7 +1924,7 @@ org.seleniumhq.selenium htmlunit-driver - ${htmlunit.version} + ${selenium-htmlunit.version} org.seleniumhq.selenium diff --git a/spring-boot-test/src/test/java/org/springframework/boot/test/web/htmlunit/webdriver/LocalHostWebConnectionHtmlUnitDriverTests.java b/spring-boot-test/src/test/java/org/springframework/boot/test/web/htmlunit/webdriver/LocalHostWebConnectionHtmlUnitDriverTests.java index 66ed6e53bb..b618de2ce9 100644 --- a/spring-boot-test/src/test/java/org/springframework/boot/test/web/htmlunit/webdriver/LocalHostWebConnectionHtmlUnitDriverTests.java +++ b/spring-boot-test/src/test/java/org/springframework/boot/test/web/htmlunit/webdriver/LocalHostWebConnectionHtmlUnitDriverTests.java @@ -81,7 +81,9 @@ public class LocalHostWebConnectionHtmlUnitDriverTests { throws Exception { this.thrown.expect(IllegalArgumentException.class); this.thrown.expectMessage("Environment must not be null"); - new LocalHostWebConnectionHtmlUnitDriver(null, mock(Capabilities.class)); + Capabilities capabilities = mock(Capabilities.class); + given(capabilities.getBrowserName()).willReturn("chrome"); + new LocalHostWebConnectionHtmlUnitDriver(null, capabilities); } @Test