commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r610896 - /commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestPropertiesSequence.java
Date Thu, 10 Jan 2008 19:42:24 GMT
Author: oheger
Date: Thu Jan 10 11:42:23 2008
New Revision: 610896

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

Modified: commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestPropertiesSequence.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestPropertiesSequence.java?rev=610896&r1=610895&r2=610896&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestPropertiesSequence.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestPropertiesSequence.java
Thu Jan 10 11:42:23 2008
@@ -17,8 +17,6 @@
  * limitations under the License.
  */
 
-import java.io.File;
-
 import java.util.Iterator;
 import java.util.List;
 
@@ -26,7 +24,6 @@
 
 import org.apache.commons.collections.IteratorUtils;
 import org.apache.commons.lang.StringUtils;
-import org.apache.commons.configuration.BaseConfiguration;
 
 /**
  * Test that the configuration factory returns keys in the same
@@ -39,8 +36,8 @@
 
     public void testConfigurationValuesInSameOrderFromFile() throws Exception
     {
-        String simpleConfigurationFile = new File("conf/testSequence.properties").getAbsolutePath();
-        String compositeConfigurationFile = new File("conf/testSequenceDigester.xml").getAbsolutePath();
+        String simpleConfigurationFile = ConfigurationAssert.getTestFile("testSequence.properties").getAbsolutePath();
+        String compositeConfigurationFile = ConfigurationAssert.getTestFile("testSequenceDigester.xml").getAbsolutePath();
 
         Configuration simpleConfiguration = new PropertiesConfiguration(simpleConfigurationFile);
 
@@ -65,8 +62,8 @@
 
     public void testConfigurationValuesInSameOrderWithManualAdd() throws Exception
     {
-        String simpleConfigurationFile = new File("conf/testSequence.properties").getAbsolutePath();
-        String compositeConfigurationFile = new File("conf/testSequenceDigester.xml").getAbsolutePath();
+        String simpleConfigurationFile = ConfigurationAssert.getTestFile("testSequence.properties").getAbsolutePath();
+        String compositeConfigurationFile = ConfigurationAssert.getTestFile("testSequenceDigester.xml").getAbsolutePath();
 
         Configuration simpleConfiguration = new PropertiesConfiguration(simpleConfigurationFile);
 
@@ -97,8 +94,8 @@
 
     public void testMappingInSameOrder() throws Exception
     {
-        String simpleConfigurationFile = new File("conf/testSequence.properties").getAbsolutePath();
-        String compositeConfigurationFile = new File("conf/testSequenceDigester.xml").getAbsolutePath();
+        String simpleConfigurationFile = ConfigurationAssert.getTestFile("testSequence.properties").getAbsolutePath();
+        String compositeConfigurationFile = ConfigurationAssert.getTestFile("testSequenceDigester.xml").getAbsolutePath();
 
         Configuration simpleConfiguration = new PropertiesConfiguration(simpleConfigurationFile);
 



Mime
View raw message