|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.configuration.TestHierarchicalConfiguration
public class TestHierarchicalConfiguration
Test class for HierarchicalConfiguration.
| Constructor Summary | |
|---|---|
TestHierarchicalConfiguration()
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
void |
testAddNodes()
|
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 |
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 |
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 |
testGetMaxIndex()
|
void |
testGetProperty()
|
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 |
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 |
testNodeRemove()
Tests removing children from a configuration node. |
void |
testNodeVisitor()
Tests the visitor mechanism. |
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 |
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 junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestHierarchicalConfiguration()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic void testSetRoot()
public void testSetRootNode()
public void testSetRootNodeNull()
public void testIsEmpty()
public void testGetProperty()
public void testSetProperty()
public void testClearProperty()
public void testClearTree()
public void testClearTreeComplex()
public void testClearTreeHierarchy()
public void testContainsKey()
public void testGetKeys()
public void testGetKeysString()
public void testAddProperty()
public void testGetMaxIndex()
public void testSubset()
public void testSubsetNodeWithValue()
public void testSubsetMultipleNodesWithValues()
public void testConfigurationAt()
public void testConfigurationAtUnknownSubTree()
public void testConfigurationAtMultipleNodes()
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 testNodeRemove()
public void testNodeVisitor()
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 testInterpolationUnknownProperty()
public void testInterpolationSysProperties()
public void testInterpolationConstants()
public void testInterpolationEscaped()
public void testInterpolator()
public void testInterpolatedConfiguration()
public void testInitCopyNull()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||