You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/10/31 09:41:13 UTC

svn commit: r1537405 - in /tomcat/tc7.0.x/trunk: ./ test/org/apache/catalina/filters/TesterServletContext.java

Author: markt
Date: Thu Oct 31 08:41:13 2013
New Revision: 1537405

URL: http://svn.apache.org/r1537405
Log:
Fix broken tests

Modified:
    tomcat/tc7.0.x/trunk/   (props changed)
    tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TesterServletContext.java

Propchange: tomcat/tc7.0.x/trunk/
------------------------------------------------------------------------------
  Merged /tomcat/trunk:r1537404

Modified: tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TesterServletContext.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TesterServletContext.java?rev=1537405&r1=1537404&r2=1537405&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TesterServletContext.java (original)
+++ tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TesterServletContext.java Thu Oct 31 08:41:13 2013
@@ -42,9 +42,14 @@ import org.apache.catalina.deploy.Filter
 
 public class TesterServletContext implements ServletContext {
 
+    /**
+     * {@inheritDoc}
+     * <p>
+     * This test implementation is hard coded to return an empty String.
+     */
     @Override
     public String getContextPath() {
-        throw new RuntimeException("Not implemented");
+        return "";
     }
 
     @Override
@@ -129,13 +134,11 @@ public class TesterServletContext implem
 
     @Override
     public String getRealPath(String path) {
-
         throw new RuntimeException("Not implemented");
     }
 
     @Override
     public String getServerInfo() {
-
         throw new RuntimeException("Not implemented");
     }
 
@@ -146,19 +149,16 @@ public class TesterServletContext implem
 
     @Override
     public Enumeration<String> getInitParameterNames() {
-
         throw new RuntimeException("Not implemented");
     }
 
     @Override
     public Object getAttribute(String name) {
-
         throw new RuntimeException("Not implemented");
     }
 
     @Override
     public Enumeration<String> getAttributeNames() {
-
         throw new RuntimeException("Not implemented");
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org