[ 
https://issues.apache.org/jira/browse/WW-4017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Grobmeier updated WW-4017:
------------------------------------

    Summary: Support multiple Action executions and Session values  (was: 
Support multiple Action executions)
    
> Support multiple Action executions and Session values
> -----------------------------------------------------
>
>                 Key: WW-4017
>                 URL: https://issues.apache.org/jira/browse/WW-4017
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - JUnit
>    Affects Versions: 2.3.12
>            Reporter: Christian Grobmeier
>
> Assuming the following scenario:
> String output = executeAction("/sessiontest/sessionSet.action");
> Assert.assertEquals("sessionValue", output);
> String output2 = executeAction("/sessiontest/sessionGet.action");
> Assert.assertEquals("sessionValue", output2);
> where the first action would set "sessionValue" into the http session and the 
> template would only output this value, output2 equals 
> "sessionValuesessionValue".
> The solution is to finish the execution and clean up the necessary mock 
> resources. Besides, the new mock session need to get the session attributes.
> This test case should then work:
> String output = executeAction("/sessiontest/sessionSet.action");
> Assert.assertEquals("sessionValue", output);
> this.finishExecution();
> String output2 = executeAction("/sessiontest/sessionGet.action");
> Assert.assertEquals("sessionValue", output2);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to