[
https://issues.apache.org/jira/browse/WW-3442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16378411#comment-16378411
]
ASF subversion and git services commented on WW-3442:
-----------------------------------------------------
Commit 54fa3f7b0474f415575e7416b43f3bf7f241a13a in struts's branch
refs/heads/master from Lukasz Lenart
[ https://gitbox.apache.org/repos/asf?p=struts.git;h=54fa3f7 ]
Merge pull request #214 from yasserzamani/WW-4921
WW-4921 initialize session like WW-3442
> 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
> Assignee: Lukasz Lenart
> Priority: Major
> Fix For: 2.3.3
>
>
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)