commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r610880 - /commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java
Date Thu, 10 Jan 2008 19:10:53 GMT
Author: oheger
Date: Thu Jan 10 11:10:47 2008
New Revision: 610880

URL: http://svn.apache.org/viewvc?rev=610880&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/TestDefaultConfigurationBuilder.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java?rev=610880&r1=610879&r2=610880&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java
Thu Jan 10 11:10:47 2008
@@ -37,23 +37,23 @@
 public class TestDefaultConfigurationBuilder extends TestCase
 {
     /** Test configuration definition file. */
-    private static final File TEST_FILE = new File(
-            "conf/testDigesterConfiguration.xml");
+    private static final File TEST_FILE = ConfigurationAssert
+            .getTestFile("testDigesterConfiguration.xml");
 
-    private static final File ADDITIONAL_FILE = new File(
-            "conf/testDigesterConfiguration2.xml");
+    private static final File ADDITIONAL_FILE = ConfigurationAssert
+            .getTestFile("testDigesterConfiguration2.xml");
 
-    private static final File OPTIONAL_FILE = new File(
-            "conf/testDigesterOptionalConfiguration.xml");
+    private static final File OPTIONAL_FILE = ConfigurationAssert
+            .getTestFile("testDigesterOptionalConfiguration.xml");
 
-    private static final File OPTIONALEX_FILE = new File(
-            "conf/testDigesterOptionalConfigurationEx.xml");
+    private static final File OPTIONALEX_FILE = ConfigurationAssert
+            .getTestFile("testDigesterOptionalConfigurationEx.xml");
 
-    private static final File MULTI_FILE = new File(
-            "conf/testDigesterConfiguration3.xml");
+    private static final File MULTI_FILE = ConfigurationAssert
+            .getTestFile("testDigesterConfiguration3.xml");
 
-    private static final File INIT_FILE = new File(
-            "conf/testComplexInitialization.xml");
+    private static final File INIT_FILE = ConfigurationAssert
+            .getTestFile("testComplexInitialization.xml");
 
     /** Constant for the name of an optional configuration.*/
     private static final String OPTIONAL_NAME = "optionalConfig";
@@ -589,7 +589,7 @@
     public void testSetConfigurationBasePath() throws ConfigurationException
     {
         factory.addProperty("properties[@fileName]", "test.properties");
-        File deepDir = new File("conf/config/deep");
+        File deepDir = new File(ConfigurationAssert.TEST_DIR, "config/deep");
         factory.setConfigurationBasePath(deepDir.getAbsolutePath());
 
         Configuration config = factory.getConfiguration(false);
@@ -710,8 +710,8 @@
     public void testLoadXMLWithSettings() throws ConfigurationException,
             IOException
     {
-        File confDir = new File("conf");
-        File targetDir = new File("target");
+        File confDir = ConfigurationAssert.TEST_DIR;
+        File targetDir = ConfigurationAssert.OUT_DIR;
         File testXMLSource = new File(confDir, "testDtd.xml");
         File testXMLValidationSource = new File(confDir,
                 "testValidateInvalid.xml");



Mime
View raw message