geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r420215 - in /geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas: ConfigurationEntryTest.java LoginSQLTest.java
Date Sat, 08 Jul 2006 23:06:54 GMT
Author: jdillon
Date: Sat Jul  8 16:06:53 2006
New Revision: 420215

URL: http://svn.apache.org/viewvc?rev=420215&view=rev
Log:
Root files with ${basedir}

Modified:
    geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas/ConfigurationEntryTest.java
    geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas/LoginSQLTest.java

Modified: geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas/ConfigurationEntryTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas/ConfigurationEntryTest.java?rev=420215&r1=420214&r2=420215&view=diff
==============================================================================
--- geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas/ConfigurationEntryTest.java
(original)
+++ geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas/ConfigurationEntryTest.java
Sat Jul  8 16:06:53 2006
@@ -70,10 +70,11 @@
     protected AbstractName serverStub;
 
     public void test() throws Exception {
-        File log = new File("target/login-audit.log");
+        File log = new File(basedir, "target/login-audit.log");
         if (log.exists()) {
             log.delete();
         }
+        
         assertEquals("Audit file wasn't cleared", 0, log.length());
 
         // First try with explicit configuration entry

Modified: geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas/LoginSQLTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas/LoginSQLTest.java?rev=420215&r1=420214&r2=420215&view=diff
==============================================================================
--- geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas/LoginSQLTest.java
(original)
+++ geronimo/sandbox/svkmerge/m2migration/modules/security/src/test/org/apache/geronimo/security/jaas/LoginSQLTest.java
Sat Jul  8 16:06:53 2006
@@ -33,14 +33,16 @@
 import java.sql.DriverManager;
 import java.sql.SQLException;
 import java.util.Properties;
+import java.io.File;
 
 
 /**
  * @version $Rev$ $Date$
  */
 public class LoginSQLTest extends AbstractTest {
-
-    private static final String hsqldbURL = "jdbc:hsqldb:target/database/LoginSQLTest";
+    private File basedir = new File(System.getProperty("basedir"));
+    private String hsqldbURL = "jdbc:hsqldb:" + new File(basedir, "target/database/LoginSQLTest");
+    
     protected AbstractName sqlRealm;
     protected AbstractName sqlModule;
 



Mime
View raw message