geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlaskow...@apache.org
Subject svn commit: r387197 - in /geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat: AbstractWebModuleTest.java ContainerTest.java
Date Mon, 20 Mar 2006 12:20:56 GMT
Author: jlaskowski
Date: Mon Mar 20 04:20:28 2006
New Revision: 387197

URL: http://svn.apache.org/viewcvs?rev=387197&view=rev
Log:
Fix the remaining inappropriately-migrated tests

Modified:
    geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat/AbstractWebModuleTest.java
    geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat/ContainerTest.java

Modified: geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat/AbstractWebModuleTest.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat/AbstractWebModuleTest.java?rev=387197&r1=387196&r2=387197&view=diff
==============================================================================
--- geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat/AbstractWebModuleTest.java
(original)
+++ geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat/AbstractWebModuleTest.java
Mon Mar 20 04:20:28 2006
@@ -110,7 +110,7 @@
         if (basedir.length() > 0 && !basedir.endsWith("/")) {
             basedir += "/";
             try {
-                filebasedir = new URL("file:/" + basedir).toString();
+                filebasedir = new File(basedir).toURL().toString();
             } catch (Exception ignored) {
             }
         }

Modified: geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat/ContainerTest.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat/ContainerTest.java?rev=387197&r1=387196&r2=387197&view=diff
==============================================================================
--- geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat/ContainerTest.java (original)
+++ geronimo/trunk/modules/tomcat/src/test/org/apache/geronimo/tomcat/ContainerTest.java Mon
Mar 20 04:20:28 2006
@@ -18,6 +18,7 @@
 package org.apache.geronimo.tomcat;
 
 import java.io.BufferedReader;
+import java.io.File;
 import java.io.InputStreamReader;
 import java.net.HttpURLConnection;
 import java.net.URL;
@@ -93,7 +94,7 @@
         if (basedir.length() > 0 && !basedir.endsWith("/")) {
             basedir += "/";
             try {
-                filebasedir = new URL("file:/" + basedir).toString();
+                filebasedir = new File(basedir).toURL().toString();
             } catch (Exception ignored) {
             }
         }



Mime
View raw message