commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r610894 - /commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestConfigurationFactory.java
Date Thu, 10 Jan 2008 19:39:31 GMT
Author: oheger
Date: Thu Jan 10 11:39:30 2008
New Revision: 610894

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

Modified: commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestConfigurationFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestConfigurationFactory.java?rev=610894&r1=610893&r2=610894&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestConfigurationFactory.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestConfigurationFactory.java
Thu Jan 10 11:39:30 2008
@@ -34,34 +34,34 @@
 public class TestConfigurationFactory extends TestCase
 {
     /** The Files that we test with */
-    private File digesterRules = new File("conf/digesterRules.xml");
+    private File digesterRules = ConfigurationAssert.getTestFile("digesterRules.xml");
     private File testDigesterFile =
-            new File("conf/testDigesterConfiguration.xml");
+        ConfigurationAssert.getTestFile("testDigesterConfiguration.xml");
     private File testDigesterFileReverseOrder =
-            new File("conf/testDigesterConfigurationReverseOrder.xml");
+        ConfigurationAssert.getTestFile("testDigesterConfigurationReverseOrder.xml");
     private File testDigesterFileNamespaceAware =
-            new File("conf/testDigesterConfigurationNamespaceAware.xml");
+        ConfigurationAssert.getTestFile("testDigesterConfigurationNamespaceAware.xml");
     private File testDigesterFileBasePath =
-            new File("conf/testDigesterConfigurationBasePath.xml");
+        ConfigurationAssert.getTestFile("testDigesterConfigurationBasePath.xml");
     private File testDigesterFileEnhanced =
-            new File("conf/testDigesterConfiguration2.xml");
+        ConfigurationAssert.getTestFile("testDigesterConfiguration2.xml");
     private File testDigesterFileComplete =
-            new File("conf/testDigesterConfiguration3.xml");
+        ConfigurationAssert.getTestFile("testDigesterConfiguration3.xml");
     private File testDigesterFileOptional =
-            new File("conf/testDigesterOptionalConfiguration.xml");
+        ConfigurationAssert.getTestFile("testDigesterOptionalConfiguration.xml");
     private File testDigesterFileOptionalEx =
-            new File("conf/testDigesterOptionalConfigurationEx.xml");
+        ConfigurationAssert.getTestFile("testDigesterOptionalConfigurationEx.xml");
     private File testDigesterFileSysProps =
-            new File("conf/testDigesterConfigurationSysProps.xml");
+        ConfigurationAssert.getTestFile("testDigesterConfigurationSysProps.xml");
     private File testDigesterFileInitProps =
-            new File("conf/testDigesterConfigurationWithProps.xml");
+        ConfigurationAssert.getTestFile("testDigesterConfigurationWithProps.xml");
 
-    private File testDigesterBadXML = new File("conf/testDigesterBadXML.xml");
+    private File testDigesterBadXML = ConfigurationAssert.getTestFile("testDigesterBadXML.xml");
 
-    private String testBasePath = new File("conf").getAbsolutePath();
+    private String testBasePath = ConfigurationAssert.TEST_DIR.getAbsolutePath();
 
-    private File testProperties = new File("conf/test.properties");
-    private File testAbsConfig = new File("target/testAbsConfig.xml");
+    private File testProperties = ConfigurationAssert.getTestFile("test.properties");
+    private File testAbsConfig = ConfigurationAssert.getOutFile("testAbsConfig.xml");
 
     private Configuration configuration;
     private CompositeConfiguration compositeConfiguration;



Mime
View raw message