|
|
@ -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")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|