|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.TestCombinedConfiguration
public class TestCombinedConfiguration
Test class for CombinedConfiguration.
Field Summary | |
---|---|
org.junit.rules.TemporaryFolder |
folder
Helper object for managing temporary files. |
Constructor Summary | |
---|---|
TestCombinedConfiguration()
|
Method Summary | |
---|---|
void |
setUp()
|
void |
testAccessPropertyEmpty()
Tests accessing properties if no configurations have been added. |
void |
testAccessPropertyMulti()
Tests accessing properties if multiple configurations have been added. |
void |
testAddConfiguration()
Tests adding a configuration (without further information). |
void |
testAddConfigurationAt()
Tests adding a configuration and specifying an at position. |
void |
testAddConfigurationComplexAt()
Tests adding a configuration with a complex at position. |
void |
testAddConfigurationWithName()
Tests adding a configuration with a name. |
void |
testAddConfigurationWithNameTwice()
Tests adding a configuration with a name when this name already exists. |
void |
testAddNullConfiguration()
Tests adding a null configuration. |
void |
testClear()
Tests clearing a combined configuration. |
void |
testClone()
Tests cloning a combined configuration. |
void |
testCloneModify()
Tests if the cloned configuration is decoupled from the original. |
void |
testCombinedCopyToXML()
Tests whether a combined configuration can be copied to an XML configuration. |
void |
testConcurrentGetAndReload()
|
void |
testConversionExpressionEngine()
Tests using a conversion expression engine for child configurations with strange keys. |
void |
testDeadlockWithReload()
Tests whether reload operations can cause a deadlock when the combined configuration is accessed concurrently. |
void |
testEscapeListDelimiters()
Tests whether escaped list delimiters are treated correctly. |
void |
testGetConfigurationNameList()
|
void |
testGetConfigurations()
|
void |
testGetSourceCombined()
Tests the getSource() method when the passed in key belongs to the combined configuration itself. |
void |
testGetSourceHierarchical()
Tests the gestSource() method when the source property is defined in a hierarchical configuration. |
void |
testGetSourceMulti()
Tests the getSource() method when the passed in key refers to multiple values, which are all defined in the same source configuration. |
void |
testGetSourceMultiSources()
Tests the getSource() method when the passed in key refers to multiple values defined by different sources. |
void |
testGetSourceNonHierarchical()
Tests whether the source configuration can be detected for non hierarchical configurations. |
void |
testGetSourceNull()
Tests the getSource() method when a null key is passed in. |
void |
testGetSourceUnknown()
Tests the getSource() method when the passed in key is not contained. |
void |
testInit()
Tests accessing a newly created combined configuration. |
void |
testInvalidateAfterChange()
Tests whether an invalidate event is fired only after a change. |
void |
testReloading()
Tests if file-based configurations can be reloaded. |
void |
testReloadingNestedCC()
Tests whether reloading works for a combined configuration nested in another combined configuration. |
void |
testReloadingSubnodeConfig()
Tests whether the reload check works with a subnode configuration. |
void |
testReloadWithSubNodeConfig()
Tests whether changes on a sub node configuration that is part of a combined configuration are detected. |
void |
testRemoveConfiguration()
Tests removing a configuration. |
void |
testRemoveConfigurationAt()
Tests removing a configuration by index. |
void |
testRemoveConfigurationByName()
Tests removing a configuration by name. |
void |
testRemoveConfigurationByUnknownName()
Tests removing a configuration by name, which is not contained. |
void |
testRemoveNamedConfiguration()
Tests removing a configuration with a name. |
void |
testRemoveNamedConfigurationAt()
Tests removing a named configuration by index. |
void |
testRemoveNonContainedConfiguration()
Tests removing a configuration that was not added prior. |
void |
testSetNodeCombiner()
Tests if setting a node combiner causes an invalidation. |
void |
testSetNullNodeCombiner()
Tests setting a null node combiner. |
void |
testUpdateContainedConfiguration()
Tests if an update of a contained configuration leeds to an invalidation of the combined configuration. |
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 TestCombinedConfiguration()
Method Detail |
---|
public void setUp() throws Exception
Exception
public void testInit()
public void testAddConfiguration()
public void testAddConfigurationWithName()
public void testAddConfigurationWithNameTwice()
public void testAddConfigurationAt()
public void testAddConfigurationComplexAt()
public void testAddNullConfiguration()
public void testAccessPropertyEmpty()
public void testAccessPropertyMulti()
public void testRemoveConfiguration()
public void testRemoveConfigurationAt()
public void testRemoveConfigurationByName()
public void testRemoveNamedConfiguration()
public void testRemoveNamedConfigurationAt()
public void testRemoveNonContainedConfiguration()
public void testRemoveConfigurationByUnknownName()
public void testUpdateContainedConfiguration()
public void testSetNodeCombiner()
public void testSetNullNodeCombiner()
public void testClone()
public void testCloneModify()
public void testClear()
public void testReloading() throws Exception
Exception
public void testReloadingSubnodeConfig() throws IOException, ConfigurationException
IOException
ConfigurationException
public void testReloadingNestedCC() throws IOException, ConfigurationException
IOException
ConfigurationException
public void testGetSourceHierarchical()
public void testGetSourceNonHierarchical()
public void testGetSourceUnknown()
public void testGetSourceNull()
public void testGetSourceCombined()
public void testGetSourceMulti()
public void testGetSourceMultiSources()
public void testEscapeListDelimiters()
public void testInvalidateAfterChange()
public void testConversionExpressionEngine()
public void testDeadlockWithReload() throws ConfigurationException, InterruptedException
ConfigurationException
InterruptedException
public void testGetConfigurations() throws Exception
Exception
public void testGetConfigurationNameList() throws Exception
Exception
public void testReloadWithSubNodeConfig() throws Exception
Exception
public void testConcurrentGetAndReload() throws Exception
Exception
public void testCombinedCopyToXML() throws ConfigurationException
ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |