|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.TestHierarchicalConfiguration
public class TestHierarchicalConfiguration
Test class for HierarchicalConfiguration.
Constructor Summary | |
---|---|
TestHierarchicalConfiguration()
|
Method Summary | |
---|---|
void |
setUp()
|
void |
testAddNodes()
|
void |
testAddNodesAttributeNode()
Tests adding an attribute node with the addNodes() method. |
void |
testAddNodesCopy()
Tests copying nodes from one configuration to another one. |
void |
testAddNodesForNonExistingKey()
Tests the addNodes() method when the provided key does not exist. |
void |
testAddNodesWithAttributeKey()
Tests the addNodes() method when the new nodes should be added to an attribute node. |
void |
testAddProperty()
|
void |
testAddPropertyInvalidKey()
|
void |
testClear()
|
void |
testClearProperty()
|
void |
testClearTree()
|
void |
testClearTreeComplex()
Tests removing more complex node structures. |
void |
testClearTreeHierarchy()
Tests the clearTree() method on a hierarchical structure of nodes. |
void |
testClone()
|
void |
testCloneWithEventListeners()
Tests whether registered event handlers are handled correctly when a configuration is cloned. |
void |
testConfigurationAt()
Tests the configurationAt() method to obtain a configuration for a sub tree. |
void |
testConfigurationAtClear()
Tests whether a sub configuration obtained by configurationAt() can be cleared. |
void |
testConfigurationAtMultipleNodes()
Tests the configurationAt() method when the passed in key selects multiple nodes. |
void |
testConfigurationAtUnknownSubTree()
Tests the configurationAt() method when the passed in key does not exist. |
void |
testConfigurationsAt()
Tests the configurationsAt() method. |
void |
testConfigurationsAtEmpty()
Tests the configurationsAt() method when the passed in key does not select any sub nodes. |
void |
testContainsKey()
|
void |
testGetKeys()
|
void |
testGetKeysString()
|
void |
testGetKeysWithKeyAsPrefix()
Tests getKeys() with a prefix when the prefix matches exactly a key. |
void |
testGetKeysWithKeyAsPrefixMultiple()
Tests getKeys() with a prefix when the prefix matches exactly a key, and there are multiple keys starting with this prefix. |
void |
testGetMaxIndex()
|
void |
testGetProperty()
|
void |
testGetPropertyKeyWithBrackets()
Tests whether keys that contains brackets can be used. |
void |
testGetRootAfterSetRootNode()
Tests calling getRoot() after a root node was set using setRootNode() and further child nodes have been added. |
void |
testInitCopy()
Tests the copy constructor. |
void |
testInitCopyNull()
Tests the copy constructor when a null reference is passed. |
void |
testInitCopyUpdate()
Tests whether the nodes of a copied configuration are independent from the source configuration. |
void |
testInterpolatedConfiguration()
Tests obtaining a configuration with all variables substituted. |
void |
testInterpolation()
Tests interpolation facilities. |
void |
testInterpolationBasic()
Basic interpolation tests. |
void |
testInterpolationConstants()
Tests interpolation with constant values. |
void |
testInterpolationEscaped()
Tests escaping variables. |
void |
testInterpolationLoop()
Tests an invalid interpolation that causes an endless loop. |
void |
testInterpolationMultipleLevels()
Tests multiple levels of interpolation. |
void |
testInterpolationSubset()
Tests interpolation with a subset. |
void |
testInterpolationSubsetMultipleLayers()
Tests whether interpolation with a subset configuration works over multiple layers. |
void |
testInterpolationSysProperties()
Tests interpolation with system properties. |
void |
testInterpolationUnknownProperty()
Tests interpolation of a variable, which cannot be resolved. |
void |
testInterpolator()
Tests manipulating the interpolator. |
void |
testIsEmpty()
|
void |
testNodeParentsAfterSetRootNode()
Tests the parents of nodes when setRootNode() is involved. |
void |
testNodeRemove()
Tests removing children from a configuration node. |
void |
testNodeVisitor()
Tests the visitor mechanism. |
void |
testNodeVisitorKeys()
Tests the visitor mechanism if a ConfigurationKey is passed in. |
void |
testSetDefaultExpressionEngine()
Tests setting the default expression engine. |
void |
testSetDefaultExpressionEngineNull()
Tests setting the default expression engine to null. |
void |
testSetExpressionEngine()
Tests setting a custom expression engine, which uses a slightly different syntax. |
void |
testSetProperty()
|
void |
testSetRoot()
|
void |
testSetRootNode()
|
void |
testSetRootNodeNull()
|
void |
testSetRootNull()
|
void |
testSubset()
|
void |
testSubsetMultipleNodesWithValues()
Tests the subset() method when the specified key selects multiple keys. |
void |
testSubsetNodeWithValue()
Tests the subset() method when the specified node has a value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestHierarchicalConfiguration()
Method Detail |
---|
public void setUp() throws Exception
Exception
public void testSetRoot()
public void testSetRootNull()
public void testSetRootNode()
public void testSetRootNodeNull()
public void testIsEmpty()
public void testGetProperty()
public void testSetProperty()
public void testClear()
public void testClearProperty()
public void testClearTree()
public void testClearTreeComplex()
public void testClearTreeHierarchy()
public void testContainsKey()
public void testGetKeys()
public void testGetKeysString()
public void testGetKeysWithKeyAsPrefix()
public void testGetKeysWithKeyAsPrefixMultiple()
public void testAddProperty()
public void testAddPropertyInvalidKey()
public void testGetMaxIndex()
public void testSubset()
public void testSubsetNodeWithValue()
public void testSubsetMultipleNodesWithValues()
public void testConfigurationAt()
public void testConfigurationAtUnknownSubTree()
public void testConfigurationAtMultipleNodes()
public void testConfigurationAtClear()
public void testConfigurationsAt()
public void testConfigurationsAtEmpty()
public void testClone()
public void testCloneWithEventListeners()
public void testAddNodes()
public void testAddNodesForNonExistingKey()
public void testAddNodesWithAttributeKey()
public void testAddNodesCopy()
public void testAddNodesAttributeNode()
public void testNodeRemove()
public void testNodeVisitor()
public void testNodeVisitorKeys()
public void testSetExpressionEngine()
public void testSetDefaultExpressionEngine()
public void testSetDefaultExpressionEngineNull()
public void testInitCopy()
public void testInitCopyUpdate()
public void testInterpolation()
public void testInterpolationBasic()
public void testInterpolationMultipleLevels()
public void testInterpolationLoop()
public void testInterpolationSubset()
public void testInterpolationSubsetMultipleLayers()
public void testInterpolationUnknownProperty()
public void testInterpolationSysProperties()
public void testInterpolationConstants()
public void testInterpolationEscaped()
public void testInterpolator()
public void testInterpolatedConfiguration()
public void testInitCopyNull()
public void testNodeParentsAfterSetRootNode()
public void testGetRootAfterSetRootNode()
public void testGetPropertyKeyWithBrackets()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |