Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3442

StrutsTestCase does not initialise session map

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8.1
    • 2.3.3
    • None
    • None

    Description

      In our unit tests we were setting http session object attributes but these we never getting copied into the action session map as it was not being initialised correctly in the getActionProxy method.

      By adding the following code at the end of the method test worked correctly

      ActionContext.getContext().setSession(new HashMap<String, Object>());

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            paulgrove Paul Grove
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: