This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch WW-5215-csp-session
in repository https://gitbox.apache.org/repos/asf/struts.git


The following commit(s) were added to refs/heads/WW-5215-csp-session by this 
push:
     new 2707bf048 WW-5215 Explicitly creates session in test
2707bf048 is described below

commit 2707bf04893f1594186020e8b33028c75f9e0c2c
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Tue Aug 23 20:50:39 2022 +0200

    WW-5215 Explicitly creates session in test
---
 .../org/apache/struts2/views/freemarker/FreemarkerResultMockedTest.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerResultMockedTest.java
 
b/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerResultMockedTest.java
index 49e7abeae..f0fa5d3ba 100644
--- 
a/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerResultMockedTest.java
+++ 
b/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerResultMockedTest.java
@@ -259,6 +259,8 @@ public class FreemarkerResultMockedTest extends 
StrutsInternalTestCase {
         EasyMock.replay(servletContext);
 
         init();
+        // create session
+        request.getSession();
 
         request.setRequestURI("/tutorial/test10.action");
         ActionMapping mapping = 
container.getInstance(ActionMapper.class).getMapping(request, 
configurationManager);

Reply via email to