Browse Source

Fix test that failed due to upgrade to HtmlUnit 2.20

pull/990/merge
Sam Brannen 10 years ago
parent
commit
455bf45fa4
  1. 2
      spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java

2
spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java

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

Loading…
Cancel
Save