Skip to content

Commit 455bf45

Browse files
committed
Fix test that failed due to upgrade to HtmlUnit 2.20
1 parent 160410c commit 455bf45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void cookieManagerShared() throws Exception {
124124
assertThat(get("http://localhost/"), equalTo(""));
125125
Cookie cookie = new Cookie("localhost", "cookie", "cookieManagerShared");
126126
otherDriver.getWebClient().getCookieManager().addCookie(cookie);
127-
assertThat(get("http://localhost/"), equalTo("cookieManagerShared"));
127+
assertThat(get("http://localhost/"), containsString("cookieManagerShared"));
128128
}
129129

130130

0 commit comments

Comments
 (0)