MockHttpServletResponse does not allow to manually clear cookiesOfThisSession
-----------------------------------------------------------------------------
Key: WICKET-3145
URL: https://issues.apache.org/jira/browse/WICKET-3145
Project: Wicket
Issue Type: Improvement
Components: wicket
Affects Versions: 1.5-M2.1, 1.4.12
Reporter: Martin Makundi
MockHttpServletResponse does not allow to manually clear cookiesOfThisSession
Often it is needed for testing various cookie scenarios to have the ability to
clear cookiesOfThisSession and sort of start fresh. Especially when reusing
WicketTester between junit tests for faster performance and less initialization
overhead.
Workaround:
Collection<?> cookiesOfThisSession =
Utils.getFieldValue("cookiesOfThisSession", Collection.class, wicketTester);
cookiesOfThisSession.clear();
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.