fixed commented out test in CookieCutterTest

Signed-off-by: gregw <gregw@webtide.com>
This commit is contained in:
gregw 2023-02-15 08:55:23 +11:00
parent 7b8c2c1bf0
commit 53fa2489b2
1 changed files with 2 additions and 2 deletions

View File

@ -139,13 +139,13 @@ public class CookieCutterTest
String rawCookie = "$Version=\"1\"; session_id=\"1234\", " +
"$Version=\"1\"; session_id=\"1111\"; $Domain=\".cracker.edu\"";
Cookie[] cookies /* = parseCookieHeaders(CookieCompliance.RFC2965_LEGACY, rawCookie);
Cookie[] cookies = parseCookieHeaders(CookieCompliance.RFC2965_LEGACY, rawCookie);
assertThat("Cookies.length", cookies.length, is(2));
assertCookie("Cookies[0]", cookies[0], "session_id", "1234", 1, null);
assertCookie("Cookies[1]", cookies[1], "session_id", "1111", 1, null);
cookies */ = parseCookieHeaders(CookieCompliance.RFC6265_LEGACY, rawCookie);
cookies = parseCookieHeaders(CookieCompliance.RFC6265_LEGACY, rawCookie);
assertThat("Cookies.length", cookies.length, is(2));
assertCookie("Cookies[0]", cookies[0], "session_id", "1234\", $Version=\"1", 0, null);
assertCookie("Cookies[1]", cookies[1], "session_id", "1111", 0, null);