Fix test that failed due to upgrade to HtmlUnit 2.20

This commit is contained in:
Sam Brannen 2016-03-18 18:43:46 +01:00
parent 160410c148
commit 455bf45fa4
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public class MockMvcHtmlUnitDriverBuilderTests {
assertThat(get("http://localhost/"), equalTo("")); assertThat(get("http://localhost/"), equalTo(""));
Cookie cookie = new Cookie("localhost", "cookie", "cookieManagerShared"); Cookie cookie = new Cookie("localhost", "cookie", "cookieManagerShared");
otherDriver.getWebClient().getCookieManager().addCookie(cookie); otherDriver.getWebClient().getCookieManager().addCookie(cookie);
assertThat(get("http://localhost/"), equalTo("cookieManagerShared")); assertThat(get("http://localhost/"), containsString("cookieManagerShared"));
} }