commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r610885 - /commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestNonStringProperties.java
Date Thu, 10 Jan 2008 19:22:04 GMT
Author: oheger
Date: Thu Jan 10 11:22:03 2008
New Revision: 610885

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

Modified: commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestNonStringProperties.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestNonStringProperties.java?rev=610885&r1=610884&r2=610885&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestNonStringProperties.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration/TestNonStringProperties.java
Thu Jan 10 11:22:03 2008
@@ -17,8 +17,6 @@
 
 package org.apache.commons.configuration;
 
-import java.io.File;
-
 /**
  * Test if non-string properties are handled correctly.
  *
@@ -27,12 +25,11 @@
 public class TestNonStringProperties extends BaseNonStringProperties
 {
     /** The File that we test with */
-    private String testProperties = new File("conf/test.properties").getAbsolutePath();
+    private String testProperties = ConfigurationAssert.getTestFile("test.properties").getAbsolutePath();
 
     public void setUp() throws Exception
     {
         conf = new PropertiesConfiguration(testProperties);
         nonStringTestHolder.setConfiguration(conf);
     }
-
 }



Mime
View raw message