Wicket
  1. Wicket
  2. WICKET-4289

Improve WicketTester handling of cookies

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.5.4, 6.0.0-beta1
    • Component/s: wicket
    • Labels:
      None

      Description

      Several of the startXyz() methods recreate the http servlet request and thus it is not easy to set cookies with wickettester which will be sent to the server side.
      Such methods are:

      • org.apache.wicket.util.tester.BaseWicketTester.startResourceReference(ResourceReference, PageParameters)
      • org.apache.wicket.util.tester.BaseWicketTester.executeListener(Component, RequestListenerInterface)
      • org.apache.wicket.util.tester.BaseWicketTester.startPage(IPageProvider)

        Activity

        Hide
        Martin Grigorov added a comment -

        Now the HttpServletRequest is created just once per request cycle and all non-expired cookies are transferred from the last response to the new request.

        Show
        Martin Grigorov added a comment - Now the HttpServletRequest is created just once per request cycle and all non-expired cookies are transferred from the last response to the new request.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Martin Grigorov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development