struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [struts] 01/03: WW-5095 Sets ActionMapping when preparing a test nv
Date Fri, 13 Nov 2020 18:39:29 GMT
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch WW-5095-cherry-pick
in repository https://gitbox.apache.org/repos/asf/struts.git

commit a6cd7a0c2553aa8f6d21cd720638dadef2379905
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Wed Nov 11 07:27:40 2020 +0100

    WW-5095 Sets ActionMapping when preparing a test nv
---
 .../junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java b/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java
index 634cc0a..25fade2 100644
--- a/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java
+++ b/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java
@@ -131,6 +131,8 @@ public abstract class StrutsJUnit4TestCase<T> extends XWorkJUnit4TestCase
{
         ServletActionContext.setRequest(request);
         ServletActionContext.setResponse(response);
 
+        ServletActionContext.getContext().put(ServletActionContext.ACTION_MAPPING, mapping);
+
         return proxy;
     }
 


Mime
View raw message