Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45540E626 for ; Sun, 17 Mar 2013 09:48:16 +0000 (UTC) Received: (qmail 42363 invoked by uid 500); 17 Mar 2013 09:48:15 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 42007 invoked by uid 500); 17 Mar 2013 09:48:14 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 41921 invoked by uid 99); 17 Mar 2013 09:48:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Mar 2013 09:48:12 +0000 Date: Sun, 17 Mar 2013 09:48:12 +0000 (UTC) From: "Hudson (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4017) Support multiple Action executions and Session values MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13604558#comment-13604558 ] Hudson commented on WW-4017: ---------------------------- Integrated in Struts2-JDK6 #657 (See [https://builds.apache.org/job/Struts2-JDK6/657/]) WW-4017: Support multiple Action executions and Session values (Revision 1457393) WW-4017: Support multiple Action executions and Session values (Revision 1457392) Result = FAILURE grobmeier : Files : * /struts/struts2/trunk/plugins/junit/src/test/java/org/apache/struts2/session * /struts/struts2/trunk/plugins/junit/src/test/java/org/apache/struts2/session/SessionGetAction.java * /struts/struts2/trunk/plugins/junit/src/test/java/org/apache/struts2/session/SessionSetAction.java * /struts/struts2/trunk/plugins/junit/src/test/java/org/apache/struts2/session/StrutsJUnit4SessionTestCaseTest.java * /struts/struts2/trunk/plugins/junit/src/test/resources/struts-session-values-test.xml * /struts/struts2/trunk/plugins/junit/src/test/resources/template-session.ftl grobmeier : Files : * /struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java > 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 > Fix For: 2.3.13 > > > 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