commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r610887 - /commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDatabaseConfiguration.java
Date Thu, 10 Jan 2008 19:26:56 GMT
Author: oheger
Date: Thu Jan 10 11:26:55 2008
New Revision: 610887

URL: http://svn.apache.org/viewvc?rev=610887&view=rev
Log:
Adapted test to new location of test resources

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDatabaseConfiguration.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDatabaseConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDatabaseConfiguration.java?rev=610887&r1=610886&r2=610887&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDatabaseConfiguration.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDatabaseConfiguration.java
Thu Jan 10 11:26:55 2008
@@ -87,7 +87,9 @@
 
         if (hsqlDB == null)
         {
-            hsqlDB = new HsqlDB(DATABASE_URL, DATABASE_DRIVER, "conf/testdb.script");
+            hsqlDB = new HsqlDB(DATABASE_URL, DATABASE_DRIVER,
+                    ConfigurationAssert.getTestFile("testdb.script")
+                            .getAbsolutePath());
         }
 
         BasicDataSource datasource = new BasicDataSource();
@@ -98,10 +100,11 @@
 
         this.datasource = datasource;
 
-
         // prepare the database
-        IDatabaseConnection connection = new DatabaseConnection(datasource.getConnection());
-        IDataSet dataSet = new XmlDataSet(new FileInputStream("conf/dataset.xml"));
+        IDatabaseConnection connection = new DatabaseConnection(datasource
+                .getConnection());
+        IDataSet dataSet = new XmlDataSet(new FileInputStream(
+                ConfigurationAssert.getTestFile("dataset.xml")));
 
         try
         {



Mime
View raw message