Author: markt
Date: Thu Oct 31 08:39:53 2013
New Revision: 1537404

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

Modified:
    tomcat/trunk/test/org/apache/catalina/filters/TesterServletContext.java

Modified: 
tomcat/trunk/test/org/apache/catalina/filters/TesterServletContext.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/filters/TesterServletContext.java?rev=1537404&r1=1537403&r2=1537404&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/filters/TesterServletContext.java 
(original)
+++ tomcat/trunk/test/org/apache/catalina/filters/TesterServletContext.java Thu 
Oct 31 08:39:53 2013
@@ -42,9 +42,14 @@ import org.apache.tomcat.util.descriptor
 
 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");
     }
 
@@ -317,9 +317,13 @@ public class TesterServletContext implem
         throw new RuntimeException("Not implemented");
     }
 
+    /**
+     * {@inheritDoc}
+     * <p>
+     * This test implementation is hard coded to return <code>localhost</code>.
+     */
     @Override
     public String getVirtualServerName() {
-        throw new RuntimeException("Not implemented");
+        return "localhost";
     }
-
 }



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

Reply via email to