commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1460440 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestCompositeConfigurationNonStringProperties.java
Date Sun, 24 Mar 2013 20:16:57 GMT
Author: oheger
Date: Sun Mar 24 20:16:57 2013
New Revision: 1460440

URL: http://svn.apache.org/r1460440
Log:
Adapted tests to changes in PropertiesConfiguration.

PropertiesConfiguration no longer extends AbstractFileConfiguration.

Modified:
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestCompositeConfigurationNonStringProperties.java

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestCompositeConfigurationNonStringProperties.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestCompositeConfigurationNonStringProperties.java?rev=1460440&r1=1460439&r2=1460440&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestCompositeConfigurationNonStringProperties.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestCompositeConfigurationNonStringProperties.java
Sun Mar 24 20:16:57 2013
@@ -17,6 +17,7 @@
 
 package org.apache.commons.configuration;
 
+import org.apache.commons.configuration.io.FileHandler;
 import org.junit.Before;
 
 
@@ -35,8 +36,9 @@ public class TestCompositeConfigurationN
     {
         CompositeConfiguration cc = new CompositeConfiguration();
         PropertiesConfiguration pc = new PropertiesConfiguration();
-        pc.setFileName(testProperties);
-        pc.load();
+        FileHandler handler = new FileHandler(pc);
+        handler.setFileName(testProperties);
+        handler.load();
         cc.addConfiguration(pc);
         conf = cc;
         nonStringTestHolder.setConfiguration(conf);



Mime
View raw message