|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.TestSubnodeConfiguration
public class TestSubnodeConfiguration
Test case for SubnodeConfiguration.
Field Summary | |
---|---|
org.junit.rules.TemporaryFolder |
folder
A helper object for creating temporary files. |
Constructor Summary | |
---|---|
TestSubnodeConfiguration()
|
Method Summary | |
---|---|
protected ConfigurationNode |
getSubnodeRoot(HierarchicalConfiguration conf)
Returns the root node for the subnode config. |
void |
setUp()
|
protected HierarchicalConfiguration |
setUpParentConfig()
Initializes the parent configuration. |
protected void |
setUpSubnodeConfig()
Performs a standard initialization of the subnode config to test. |
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 |
testInterpolator()
Tests manipulating the interpolator. |
void |
testLocalInterpolationFromConfigurationAt()
An additional test for interpolation when the configurationAt() method is involved for a local interpolation. |
void |
testLocalLookupsInInterpolatorAreInherited()
|
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 |
testParentReloadEvents()
Tests whether events are fired if a change of the parent is detected. |
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. |
void |
testSetThrowExceptionOnMissingAffectsParent()
Tests whether the exception flag can be set independently from the parent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public org.junit.rules.TemporaryFolder folder
Constructor Detail |
---|
public TestSubnodeConfiguration()
Method Detail |
---|
public void setUp() throws Exception
Exception
public 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 testSetThrowExceptionOnMissingAffectsParent()
public void testSetDelimiterParsingDisabled()
public void testSetListDelimiter()
public void testSetExpressionEngine()
public void testConfiguarationAt()
public void testInterpolation()
public void testInterpolationFromConfigurationAt()
public void testLocalInterpolationFromConfigurationAt()
public void testInterpolator()
public void testLocalLookupsInInterpolatorAreInherited()
public void testParentReloadNotSupported() throws ConfigurationException
ConfigurationException
public void testParentReloadSupported() throws ConfigurationException
ConfigurationException
public void testParentReloadEvents() throws ConfigurationException
ConfigurationException
public void testParentReloadSupportAccessParent() throws ConfigurationException
ConfigurationException
public void testParentReloadSubSubnode() throws ConfigurationException
ConfigurationException
public void testParentReloadSubSubnodeNoChangeSupport() throws ConfigurationException
ConfigurationException
public void testParentChangeDetach()
public void testParentChangeDetatchException()
protected HierarchicalConfiguration setUpParentConfig()
protected ConfigurationNode getSubnodeRoot(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 |