Author: kkolinko
Date: Tue Nov 18 16:42:56 2014
New Revision: 1640385
URL: http://svn.apache.org/r1640385
Log:
Correct tests to use the correct context path for ROOT webapp.
Those were printing the warning
"StandardContext.setPath A context path must either be an empty string or start
with a '/'"...
Modified:
tomcat/tc7.0.x/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java
Modified:
tomcat/tc7.0.x/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java?rev=1640385&r1=1640384&r2=1640385&view=diff
==============================================================================
---
tomcat/tc7.0.x/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java
(original)
+++
tomcat/tc7.0.x/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java
Tue Nov 18 16:42:56 2014
@@ -238,7 +238,7 @@ public class TestCoyoteAdapter extends T
// Must have a real docBase - just use temp
Context ctx =
- tomcat.addContext("/", System.getProperty("java.io.tmpdir"));
+ tomcat.addContext("", System.getProperty("java.io.tmpdir"));
PathInfoServlet servlet = new PathInfoServlet();
Tomcat.addServlet(ctx, "servlet", servlet);
@@ -280,7 +280,7 @@ public class TestCoyoteAdapter extends T
// Must have a real docBase - just use temp
Context ctx =
- tomcat.addContext("/", System.getProperty("java.io.tmpdir"));
+ tomcat.addContext("", System.getProperty("java.io.tmpdir"));
AsyncServlet servlet = new AsyncServlet();
Wrapper w = Tomcat.addServlet(ctx, "async", servlet);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]