You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Makundi (JIRA)" <ji...@apache.org> on 2010/11/04 06:27:44 UTC

[jira] Created: (WICKET-3145) MockHttpServletResponse does not allow to manually clear cookiesOfThisSession

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.


[jira] Updated: (WICKET-3145) MockHttpServletResponse does not allow to manually clear cookiesOfThisSession

Posted by "Martin Makundi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Makundi updated WICKET-3145:
-----------------------------------

    Priority: Minor  (was: Major)

> 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.4.12, 1.5-M2.1
>            Reporter: Martin Makundi
>            Priority: Minor
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> 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.


[jira] Updated: (WICKET-3145) MockWebApplication does not allow to manually clear cookiesOfThisSession

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov updated WICKET-3145:
------------------------------------

    Description: 
MockWebApplication 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();


  was:
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();


        Summary: MockWebApplication does not allow to manually clear cookiesOfThisSession  (was: MockHttpServletResponse does not allow to manually clear cookiesOfThisSession)

This variable is a member of MockWebApplication, not MockHttpServletResponse.

> MockWebApplication 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.4.12
>            Reporter: Martin Makundi
>            Priority: Minor
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> MockWebApplication 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.


[jira] [Commented] (WICKET-3145) MockWebApplication does not allow to manually clear cookiesOfThisSession

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13107284#comment-13107284 ] 

Igor Vaynberg commented on WICKET-3145:
---------------------------------------

added clearCookiesOfThisSession()

> MockWebApplication 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.4.12
>            Reporter: Martin Makundi
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.4.19
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> MockWebApplication 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (WICKET-3145) MockWebApplication does not allow to manually clear cookiesOfThisSession

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-3145.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4.19
         Assignee: Igor Vaynberg

> MockWebApplication 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.4.12
>            Reporter: Martin Makundi
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.4.19
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> MockWebApplication 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WICKET-3145) MockHttpServletResponse does not allow to manually clear cookiesOfThisSession

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov updated WICKET-3145:
------------------------------------

    Affects Version/s:     (was: 1.5-M2.1)

This is not applicable for Wicket 1.5

> 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.4.12
>            Reporter: Martin Makundi
>            Priority: Minor
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> 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.