org.apache.commons.configuration.event
Class TestHierarchicalConfigurationEvents

java.lang.Object
  extended by org.apache.commons.configuration.event.AbstractTestConfigurationEvents
      extended by org.apache.commons.configuration.event.TestHierarchicalConfigurationEvents

public class TestHierarchicalConfigurationEvents
extends AbstractTestConfigurationEvents

Test class for the events generated by hierarchical configurations.

Version:
$Id: TestHierarchicalConfigurationEvents.java 1225648 2011-12-29 20:55:07Z oheger $

Field Summary
 
Fields inherited from class org.apache.commons.configuration.event.AbstractTestConfigurationEvents
config, l
 
Constructor Summary
TestHierarchicalConfigurationEvents()
           
 
Method Summary
protected  AbstractConfiguration createConfiguration()
          Creates the configuration instance to be tested.
 void testAddNodesEmptyEvent()
          Tests events generated by addNodes() when the list of nodes is empty.
 void testAddNodesEvent()
          Tests events generated by the addNodes() method.
 void testClearTreeEvent()
          Tests events generated by the clearTree() method.
 void testSubnodeChangedEvent()
          Tests whether manipulations of a subnode configuration trigger correct events.
 
Methods inherited from class org.apache.commons.configuration.event.AbstractTestConfigurationEvents
setUp, testAddPropertyEvent, testAddPropertyEventWithDetails, testClearEvent, testClearEventWithDetails, testClearPropertyEvent, testClearPropertyEventWithDetails, testSetPropertyEvent, testSetPropertyEventWithDetails
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestHierarchicalConfigurationEvents

public TestHierarchicalConfigurationEvents()
Method Detail

createConfiguration

protected AbstractConfiguration createConfiguration()
Description copied from class: AbstractTestConfigurationEvents
Creates the configuration instance to be tested.

Specified by:
createConfiguration in class AbstractTestConfigurationEvents
Returns:
the configuration instance under test

testClearTreeEvent

public void testClearTreeEvent()
Tests events generated by the clearTree() method.


testAddNodesEvent

public void testAddNodesEvent()
Tests events generated by the addNodes() method.


testAddNodesEmptyEvent

public void testAddNodesEmptyEvent()
Tests events generated by addNodes() when the list of nodes is empty. In this case no events should be generated.


testSubnodeChangedEvent

public void testSubnodeChangedEvent()
Tests whether manipulations of a subnode configuration trigger correct events.



Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.