|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.TestCompositeConfiguration
public class TestCompositeConfiguration
Test loading multiple configurations.
Field Summary | |
---|---|
protected CompositeConfiguration |
cc
|
protected PropertiesConfiguration |
conf1
|
protected PropertiesConfiguration |
conf2
|
protected XMLConfiguration |
xmlConf
|
Constructor Summary | |
---|---|
TestCompositeConfiguration()
|
Method Summary | |
---|---|
void |
setUp()
|
void |
testAddingProperty()
Tests adding values. |
void |
testAddRemoveConfigurations()
|
void |
testCantRemoveMemoryConfig()
|
void |
testCheckingInMemoryConfiguration()
|
void |
testClearingProperty()
Tests setting values. |
void |
testClone()
|
void |
testCloneEventListener()
Ensures that event listeners are not cloned. |
void |
testCloneNotSupported()
Tests cloning if one of the contained configurations does not support this operation. |
void |
testDefaultValueWhenKeyMissing()
Tests getting a default when the key doesn't exist |
void |
testEventAddProperty()
Tests whether add property events are triggered. |
void |
testEventClearProperty()
Tests whether clear property events are triggered. |
void |
testEventSetProperty()
Tests whether set property events are triggered. |
void |
testGetKeys2PreservesOrder()
Tests getKeys(String key) preserves the order |
void |
testGetKeysPreservesOrder()
Tests getKeys preserves the order |
void |
testGetList()
|
void |
testGetListWithInterpolation()
Tests querying a list when a tricky interpolation is involved. |
void |
testGetProperty()
|
void |
testGetPropertyMissing()
|
void |
testGetPropertyWIncludes()
|
void |
testGetSourceInMemory()
Tests the getSource() method for a property contained in the in memory configuration. |
void |
testGetSourceMultiple()
Tests the getSource() method if the property is defined by multiple child configurations. |
void |
testGetSourceNull()
Tests the getSource() method for a null key. |
void |
testGetSourceSingle()
Tests the getSource() method if the property is defined in a single child configuration. |
void |
testGetSourceUnknown()
Tests the getSource() method for an unknown property key. |
void |
testGetStringArrayWithInterpolation()
Tests querying a string array when a tricky interpolation is involved. |
void |
testGetStringWithDefaults()
|
void |
testGettingConfiguration()
|
void |
testGettingSubset()
Tests retrieving subsets of configurations |
void |
testInstanciateWithCollection()
|
void |
testInterpolationInMultipleConfigs()
Tests whether interpolation works if multiple configurations are involved. |
void |
testInterpolationWithReload()
Tests interpolation in combination with reloading. |
void |
testList()
Tests List parsing. |
void |
testListInterpolation()
Tests whether global interpolation works with lists. |
void |
testMultipleTypesOfConfigs()
Tests List parsing. |
void |
testPropertyExistsInOnlyOneConfig()
|
void |
testReplaceInMemoryConfig()
Tests whether the in-memory configuration can be replaced by a new child configuration. |
void |
testSetDelimiterParsingDisabled()
Tests whether list splitting can be disabled. |
void |
testSetDelimiterParsingDisabledAfterClear()
Tests whether the list parsing flag is correctly handled after a clear() operation. |
void |
testSetDelimiterParsingDisabledInMemoryConfigNonBaseConfig()
Tests the behavior of setDelimiterParsingDisabled() if the in-memory configuration is not derived from BaseConfiguration. |
void |
testSetListDelimiter()
Tests changing the list delimiter character. |
void |
testSetListDelimiterAfterClear()
Tests whether the correct list delimiter is set after a clear operation. |
void |
testSetListDelimiterInMemoryConfigNonBaseConfig()
Tests the behavior of setListDelimiter() if the in-memory configuration is not derived from BaseConfiguration. |
void |
testSettingMissingProperty()
Tests setting values. |
void |
testStringArray()
Tests String array parsing. |
void |
testStringArrayInterpolation()
|
void |
testSubsetCanResolve()
Tests subsets and still can resolve elements |
void |
testThrowExceptionOnMissing()
|
void |
testUseChildConfigAsInMemoryConfig()
Tests whether a configuration can act as both regular child configuration and in-memory configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PropertiesConfiguration conf1
protected PropertiesConfiguration conf2
protected XMLConfiguration xmlConf
protected CompositeConfiguration cc
Constructor Detail |
---|
public TestCompositeConfiguration()
Method Detail |
---|
public void setUp() throws Exception
Exception
public void testThrowExceptionOnMissing()
public void testAddRemoveConfigurations() throws Exception
Exception
public void testGetPropertyWIncludes() throws Exception
Exception
public void testGetProperty() throws Exception
Exception
public void testCantRemoveMemoryConfig() throws Exception
Exception
public void testGetPropertyMissing() throws Exception
Exception
public void testMultipleTypesOfConfigs() throws Exception
List
parsing.
Exception
public void testPropertyExistsInOnlyOneConfig() throws Exception
Exception
public void testDefaultValueWhenKeyMissing() throws Exception
Exception
public void testGettingConfiguration() throws Exception
Exception
public void testClearingProperty() throws Exception
Exception
public void testAddingProperty() throws Exception
Exception
public void testSettingMissingProperty() throws Exception
Exception
public void testGettingSubset() throws Exception
Exception
public void testSubsetCanResolve() throws Exception
Exception
public void testList() throws Exception
List
parsing.
Exception
public void testStringArray() throws Exception
String
array parsing.
Exception
public void testGetList()
public void testGetKeysPreservesOrder() throws Exception
getKeys
preserves the order
Exception
public void testGetKeys2PreservesOrder() throws Exception
getKeys(String key)
preserves the order
Exception
public void testGetStringWithDefaults()
public void testCheckingInMemoryConfiguration() throws Exception
Exception
public void testStringArrayInterpolation()
public void testListInterpolation()
public void testInterpolationWithReload() throws IOException, ConfigurationException
IOException
ConfigurationException
public void testInstanciateWithCollection()
public void testClone()
public void testCloneNotSupported()
public void testCloneEventListener()
public void testEventAddProperty()
public void testEventSetProperty()
public void testEventClearProperty()
public void testSetListDelimiter()
public void testSetListDelimiterAfterClear()
public void testSetDelimiterParsingDisabled()
public void testSetDelimiterParsingDisabledAfterClear()
public void testGetSourceSingle()
public void testGetSourceUnknown()
public void testGetSourceInMemory()
public void testGetSourceMultiple()
public void testGetSourceNull()
public void testGetListWithInterpolation()
public void testGetStringArrayWithInterpolation()
public void testInterpolationInMultipleConfigs()
public void testSetListDelimiterInMemoryConfigNonBaseConfig()
public void testSetDelimiterParsingDisabledInMemoryConfigNonBaseConfig()
public void testUseChildConfigAsInMemoryConfig()
public void testReplaceInMemoryConfig()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |