commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r907248 - in /commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2: TestConfigurationUtils.java TestSubConfiguration.java
Date Sat, 06 Feb 2010 16:26:04 GMT
Author: oheger
Date: Sat Feb  6 16:26:04 2010
New Revision: 907248

URL: http://svn.apache.org/viewvc?rev=907248&view=rev
Log:
Replaced reference to HierarchicalConfiguration by an AbstractHierarchicalConfiguration.

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestConfigurationUtils.java
    commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestSubConfiguration.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestConfigurationUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestConfigurationUtils.java?rev=907248&r1=907247&r2=907248&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestConfigurationUtils.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestConfigurationUtils.java
Sat Feb  6 16:26:04 2010
@@ -243,9 +243,9 @@
      */
     public void testCloneConfiguration()
     {
-        HierarchicalConfiguration conf = new HierarchicalConfiguration();
+        InMemoryConfiguration conf = new InMemoryConfiguration();
         conf.addProperty("test", "yes");
-        HierarchicalConfiguration copy = (HierarchicalConfiguration) ConfigurationUtils
+        InMemoryConfiguration copy = (InMemoryConfiguration) ConfigurationUtils
                 .cloneConfiguration(conf);
         assertNotSame("Same object was returned", conf, copy);
         assertEquals("Property was not cloned", "yes", copy.getString("test"));

Modified: commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestSubConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestSubConfiguration.java?rev=907248&r1=907247&r2=907248&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestSubConfiguration.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestSubConfiguration.java
Sat Feb  6 16:26:04 2010
@@ -381,7 +381,7 @@
         {
             assertEquals("Wrong configuration", config, e.getSource());
             assertEquals("Wrong event type",
-                    HierarchicalConfiguration.EVENT_SUBNODE_CHANGED, e
+                    AbstractHierarchicalConfiguration.EVENT_SUBNODE_CHANGED, e
                             .getType());
             assertNull("Got a property name", e.getPropertyName());
             assertNull("Got a property value", e.getPropertyValue());



Mime
View raw message