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 9a917e3cfd..3735685fc2 100644 --- a/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java +++ b/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java @@ -165,6 +165,8 @@ protected ActionProxy getActionProxy(String uri) { ServletActionContext.setRequest(request); ServletActionContext.setResponse(response); + ServletActionContext.getContext().put(ServletActionContext.ACTION_MAPPING, mapping); + return proxy; }