Author: tschneider
Date: Sun Feb 18 08:55:20 2007
New Revision: 508917

URL: http://svn.apache.org/viewvc?view=rev&rev=508917
Log:
WW-1699 added J2EE 5 compatibility to the StrutsMockServletContext

Contributor: Stepan Koltsov
Reviewed By: Tom Schneider

Modified:
    
struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/StrutsMockServletContext.java

Modified: 
struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/StrutsMockServletContext.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/StrutsMockServletContext.java?view=diff&rev=508917&r1=508916&r2=508917
==============================================================================
--- 
struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/StrutsMockServletContext.java
 (original)
+++ 
struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/StrutsMockServletContext.java
 Sun Feb 18 08:55:20 2007
@@ -43,6 +43,7 @@
 
     String realPath;
     String servletInfo;
+    String contextPath;
     Map initParams = new HashMap();
     Map attributes = new HashMap();
     InputStream resourceAsStream;
@@ -157,5 +158,13 @@
 
     public void setServletInfo(String servletInfo) {
         this.servletInfo = servletInfo;
+    }
+    
+    public String getContextPath() {
+        return contextPath;
+    } 
+
+    public void setContextPath(String contextPath) {
+        this.contextPath = contextPath;
     }
 }


Reply via email to