commons-commits mailing list archives

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

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

Modified: commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestEqualBehaviour.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestEqualBehaviour.java?rev=610904&r1=610903&r2=610904&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestEqualBehaviour.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestEqualBehaviour.java
Thu Jan 10 11:56:35 2008
@@ -17,14 +17,13 @@
  * limitations under the License.
  */
 
-import java.io.File;
 import java.util.Iterator;
 import java.util.List;
 
 import junit.framework.TestCase;
 
 /**
- * Compare the behaviour of various methods between CompositeConfiguration
+ * Compare the behavior of various methods between CompositeConfiguration
  * and normal (Properties) Configuration
  * 
  * @version $Id$
@@ -34,14 +33,14 @@
     private Configuration setupSimpleConfiguration()
             throws Exception
     {
-        String simpleConfigurationFile = new File("conf/testEqual.properties").getAbsolutePath();
+        String simpleConfigurationFile = ConfigurationAssert.getTestFile("testEqual.properties").getAbsolutePath();
         return new PropertiesConfiguration(simpleConfigurationFile);
     }
 
     private Configuration setupCompositeConfiguration()
             throws Exception
     {
-        String compositeConfigurationFile = new File("conf/testEqualDigester.xml").getAbsolutePath();
+        String compositeConfigurationFile = ConfigurationAssert.getTestFile("testEqualDigester.xml").getAbsolutePath();
 
         ConfigurationFactory configurationFactory = new ConfigurationFactory();
         configurationFactory.setConfigurationFileName(compositeConfigurationFile);



Mime
View raw message