From ef72c22563dc61aefd2c51df3045302d8bbe8008 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 7 Apr 2017 12:10:39 +0100 Subject: [PATCH] Update HtmlUnitDriver tests to align with HtmlUnit 2.26 See gh-8853 and cb34189c66a21def2b5f79fcc13a61a3e5828e37 --- .../webdriver/LocalHostWebConnectionHtmlUnitDriverTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ade28caf819..3406d02c4c8 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 @@ -87,7 +87,8 @@ public class LocalHostWebConnectionHtmlUnitDriverTests { this.thrown.expect(IllegalArgumentException.class); this.thrown.expectMessage("Environment must not be null"); Capabilities capabilities = mock(Capabilities.class); - given(capabilities.getBrowserName()).willReturn("chrome"); + given(capabilities.getBrowserName()).willReturn("htmlunit"); + given(capabilities.getVersion()).willReturn("chrome"); new LocalHostWebConnectionHtmlUnitDriver(null, capabilities); }