|
||||||||||
| 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.TestSubnodeConfiguration
public class TestSubnodeConfiguration
Test case for SubnodeConfiguration.
| Constructor Summary | |
|---|---|
TestSubnodeConfiguration()
|
|
| Method Summary | |
|---|---|
protected org.apache.commons.configuration.tree.ConfigurationNode |
getSubnodeRoot(org.apache.commons.configuration.HierarchicalConfiguration conf)
Returns the root node for the subnode config. |
protected void |
setUp()
|
protected org.apache.commons.configuration.HierarchicalConfiguration |
setUpParentConfig()
Initializes the parent configuration. |
protected void |
setUpSubnodeConfig()
Performs a standard initialization of the subnode config to test. |
protected void |
tearDown()
|
void |
testAddProperty()
Tests adding of properties. |
void |
testConfiguarationAt()
Tests the configurationAt() method. |
void |
testGetKeys()
Tests listing the defined keys. |
void |
testGetProperties()
Tests if properties of the sub node can be accessed. |
void |
testInitSubNodeConfig()
Tests creation of a subnode config. |
void |
testInitSubNodeConfigWithNullNode()
Tests constructing a subnode configuration with a null root node. |
void |
testInitSubNodeConfigWithNullParent()
Tests constructing a subnode configuration with a null parent. |
void |
testInterpolation()
Tests interpolation features. |
void |
testInterpolationFromConfigurationAt()
An additional test for interpolation when the configurationAt() method is involved. |
void |
testParentChangeDetach()
Tests a manipulation of the parent configuration that causes the subnode configuration to become invalid. |
void |
testParentChangeDetatchException()
Tests detaching a subnode configuration when an exception is thrown during reconstruction. |
void |
testParentReloadNotSupported()
Tests a reload operation for the parent configuration when the subnode configuration does not support reloads. |
void |
testParentReloadSubSubnode()
Tests whether reloads work with sub subnode configurations. |
void |
testParentReloadSubSubnodeNoChangeSupport()
Tests creating a sub sub config when the sub config is not aware of changes. |
void |
testParentReloadSupportAccessParent()
Tests a reload operation for the parent configuration when the subnode configuration is aware of reloads, and the parent configuration is accessed first. |
void |
testParentReloadSupported()
Tests a reload operation for the parent configuration when the subnode configuration does support reloads. |
void |
testSetDelimiterParsingDisabled()
Tests handling of the delimiter parsing disabled flag. |
void |
testSetExpressionEngine()
Tests changing the expression engine. |
void |
testSetListDelimiter()
Tests manipulating the list delimiter. |
void |
testSetProperty()
Tests setting of properties in both the parent and the subnode configuration and whether the changes are visible to each other. |
void |
testSetThrowExceptionOnMissing()
Tests setting the exception on missing flag. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 TestSubnodeConfiguration()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic void testInitSubNodeConfig()
public void testInitSubNodeConfigWithNullParent()
public void testInitSubNodeConfigWithNullNode()
public void testGetProperties()
public void testSetProperty()
public void testAddProperty()
public void testGetKeys()
public void testSetThrowExceptionOnMissing()
public void testSetDelimiterParsingDisabled()
public void testSetListDelimiter()
public void testSetExpressionEngine()
public void testConfiguarationAt()
public void testInterpolation()
public void testInterpolationFromConfigurationAt()
public void testParentReloadNotSupported()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testParentReloadSupported()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testParentReloadSupportAccessParent()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testParentReloadSubSubnode()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testParentReloadSubSubnodeNoChangeSupport()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic void testParentChangeDetach()
public void testParentChangeDetatchException()
protected org.apache.commons.configuration.HierarchicalConfiguration setUpParentConfig()
protected org.apache.commons.configuration.tree.ConfigurationNode getSubnodeRoot(org.apache.commons.configuration.HierarchicalConfiguration conf)
conf - the parent config
protected void setUpSubnodeConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||