struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Grove (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3442) StrutsTestCase does not initialise session map
Date Mon, 19 Apr 2010 13:29:49 GMT
StrutsTestCase does not initialise session map
----------------------------------------------

                 Key: WW-3442
                 URL: https://issues.apache.org/jira/browse/WW-3442
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.1.8.1
            Reporter: Paul Grove


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message