Skip to content

Commit

Permalink
Update HtmlUnitDriver tests to align with HtmlUnit 2.26
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Apr 7, 2017
1 parent fd8814b commit ef72c22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ public void createWithCapabilitiesWhenEnvironmentIsNullWillThrowException()
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);
}

Expand Down

0 comments on commit ef72c22

Please sign in to comment.