提交 455bf45f 编写于 作者: S Sam Brannen

Fix test that failed due to upgrade to HtmlUnit 2.20

上级 160410c1
...@@ -124,7 +124,7 @@ public class MockMvcHtmlUnitDriverBuilderTests { ...@@ -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"));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册