You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/02/27 11:05:01 UTC

[jira] [Commented] (WW-3442) StrutsTestCase does not initialise session map

    [ https://issues.apache.org/jira/browse/WW-3442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16378408#comment-16378408 ] 

ASF subversion and git services commented on WW-3442:
-----------------------------------------------------

Commit a448b8a91b68dfcca43c9716eb02714f188995a2 in struts's branch refs/heads/master from [~yasser.zamani]
[ https://gitbox.apache.org/repos/asf?p=struts.git;h=a448b8a ]

make newly added methods protected to allow users to override them

See also WW-4921, 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)