Author: markt Date: Wed Oct 29 20:02:47 2014 New Revision: 1635286 URL: http://svn.apache.org/r1635286 Log: Avoid using /tmp as a docBase where it is not necessary
Modified: tomcat/trunk/test/org/apache/naming/resources/TestNamingContext.java Modified: tomcat/trunk/test/org/apache/naming/resources/TestNamingContext.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/naming/resources/TestNamingContext.java?rev=1635286&r1=1635285&r2=1635286&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/naming/resources/TestNamingContext.java (original) +++ tomcat/trunk/test/org/apache/naming/resources/TestNamingContext.java Wed Oct 29 20:02:47 2014 @@ -60,9 +60,8 @@ public class TestNamingContext extends T Tomcat tomcat = getTomcatInstance(); tomcat.enableNaming(); - // Must have a real docBase - just use temp - StandardContext ctx = (StandardContext) - tomcat.addContext("", System.getProperty("java.io.tmpdir")); + // No file system docBase required + org.apache.catalina.Context ctx = tomcat.addContext("", null); // Create the resource ContextResource cr = new ContextResource(); @@ -122,9 +121,8 @@ public class TestNamingContext extends T Tomcat tomcat = getTomcatInstance(); tomcat.enableNaming(); - // Must have a real docBase - just use temp - StandardContext ctx = (StandardContext) - tomcat.addContext("", System.getProperty("java.io.tmpdir")); + // No file system docBase required + org.apache.catalina.Context ctx = tomcat.addContext("", null); // Create the resource ContextResource cr = new ContextResource(); @@ -174,9 +172,8 @@ public class TestNamingContext extends T Tomcat tomcat = getTomcatInstance(); tomcat.enableNaming(); - // Must have a real docBase - just use temp - StandardContext ctx = (StandardContext) - tomcat.addContext("", System.getProperty("java.io.tmpdir")); + // No file system docBase required + org.apache.catalina.Context ctx = tomcat.addContext("", null); // Create the resource ContextResource cr = new ContextResource(); @@ -234,9 +231,8 @@ public class TestNamingContext extends T Tomcat tomcat = getTomcatInstance(); tomcat.enableNaming(); - // Must have a real docBase - just use temp - StandardContext ctx = (StandardContext) - tomcat.addContext("", System.getProperty("java.io.tmpdir")); + // No file system docBase required + StandardContext ctx = (StandardContext) tomcat.addContext("", null); ctx.setJndiExceptionOnFailedWrite(exceptionOnFailedWrite); @@ -293,9 +289,8 @@ public class TestNamingContext extends T Tomcat tomcat = getTomcatInstance(); tomcat.enableNaming(); - // Must have a real docBase - just use temp - StandardContext ctx = (StandardContext) - tomcat.addContext("", System.getProperty("java.io.tmpdir")); + // No file system docBase required + org.apache.catalina.Context ctx = tomcat.addContext("", null); // Create the resource ContextEnvironment env = new ContextEnvironment(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org