You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@apache.org on 2006/01/14 21:00:32 UTC
svn commit: r369087 - in
/struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock:
MockExternalContext.java MockServletContext.java
Author: craigmcc
Date: Sat Jan 14 12:00:28 2006
New Revision: 369087
URL: http://svn.apache.org/viewcvs?rev=369087&view=rev
Log:
Implement ExternalCotnext.encodeNamespace() and the various
ServletContext.log() methods.
Bugzilla Issue: 38235
Issue and patch submitted by: Dennis C. Byrne <dennis AT dbyrne.net>
Modified:
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockExternalContext.java
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockServletContext.java
Modified: struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockExternalContext.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockExternalContext.java?rev=369087&r1=369086&r2=369087&view=diff
==============================================================================
--- struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockExternalContext.java (original)
+++ struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockExternalContext.java Sat Jan 14 12:00:28 2006
@@ -80,8 +80,8 @@
private Map requestMap = null;
private HttpServletResponse response = null;
private Map sessionMap = null;
- private Map requestCookieMap = new HashMap();
- private Map requestParameterMap = new HashMap();
+ private Map requestCookieMap = new HashMap();
+ private Map requestParameterMap = new HashMap();
// ------------------------------------------------- setters for the mock object
@@ -122,7 +122,7 @@
public String encodeNamespace(String aValue) {
- throw new UnsupportedOperationException();
+ return aValue;
}
Modified: struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockServletContext.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockServletContext.java?rev=369087&r1=369086&r2=369087&view=diff
==============================================================================
--- struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockServletContext.java (original)
+++ struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockServletContext.java Sat Jan 14 12:00:28 2006
@@ -326,21 +326,23 @@
public void log(String message) {
- throw new UnsupportedOperationException();
+ System.out.println(message);
}
public void log(Exception exception, String message) {
- throw new UnsupportedOperationException();
+ System.out.println(message);
+ exception.printStackTrace();
}
public void log(String message, Throwable exception) {
- throw new UnsupportedOperationException();
+ System.out.println(message);
+ exception.printStackTrace();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org