|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.TestWebdavConfigurationBuilder
public class TestWebdavConfigurationBuilder
Test class for DefaultConfigurationBuilder.
Field Summary |
---|
Fields inherited from interface org.apache.commons.configuration.FileOptionsProvider |
---|
CURRENT_USER, MAX_HOST_CONNECTIONS, MAX_TOTAL_CONNECTIONS, PROXY_HOST, PROXY_PORT, VERSIONING |
Constructor Summary | |
---|---|
TestWebdavConfigurationBuilder()
|
Method Summary | |
---|---|
void |
configurationChanged(ConfigurationEvent event)
|
Map<String,Object> |
getOptions()
|
void |
setUp()
|
void |
tearDown()
|
void |
testAddConfigurationProvider()
Tests adding a new configuration provider. |
void |
testAddConfigurationProviderNull()
Tries to register a null configuration provider. |
void |
testAddConfigurationProviderNullTag()
Tries to register a configuration provider for a null tag. |
void |
testCombinedConfiguration()
Tests if the returned combined configuration has the expected structure. |
void |
testCombinedConfigurationListNodes()
Tests whether the list node definition was correctly processed. |
void |
testCombinedConfigurationNoAdditional()
Tests the structure of the returned combined configuration if there is no additional section. |
void |
testComplexInitialization()
Tests reading a configuration definition file that contains complex initialization of properties of the declared configuration sources. |
void |
testConfigurationBeanFactoryCreateBean()
Tests creating a configuration object from a configuration declaration. |
void |
testConfigurationBeanFactoryCreateUnknownTag()
Tests creating a configuration object from an unknown tag. |
void |
testConfigurationDeclarationGetAttributes()
Tests access to certain reserved attributes of a ConfigurationDeclaration. |
void |
testConfigurationDeclarationIsReserved()
Tests the isReservedNode() method of ConfigurationDeclaration. |
void |
testConfigurationDeclarationIsReservedAt()
Tests if the at attribute is correctly detected as reserved attribute. |
void |
testConfigurationDeclarationIsReservedOptional()
Tests if the optional attribute is correctly detected as reserved attribute. |
void |
testConfigurationDeclarationOptionalAttributeInvalid()
Tests whether an invalid value of an optional attribute is detected. |
void |
testConfigurationProvider()
Tests loading a configuration definition file that defines new providers. |
void |
testExtendedClass()
Tests loading a configuration definition file that defines a custom result class. |
void |
testExtendedXMLConfigurationProvider()
Tests loading a configuration definition file that defines new providers. |
void |
testFileChanged()
|
void |
testFileChanged2()
|
void |
testGlobalLookup()
|
void |
testLoadAdditional()
Tests loading a configuration definition file with an additional section. |
void |
testLoadConfiguration()
Tests loading a simple configuration definition file. |
void |
testLoadConfigurationFromFile()
Tests the file constructor. |
void |
testLoadDifferentSources()
Tests loading a definition file with multiple different sources. |
void |
testLoadOptional()
Tests loading a definition file that contains optional configurations. |
void |
testLoadOptionalBuilderForceCreate()
Tests loading an embedded optional configuration builder with the force create attribute. |
void |
testLoadOptionalErrorEvent()
Tests whether loading a failing optional configuration causes an error event. |
void |
testLoadOptionalForceCreateWithException()
Tests loading an optional configuration with the force create attribute set. |
void |
testLoadOptionalNonFileBased()
Tries to load a configuration file with an optional, non file-based configuration. |
void |
testLoadOptionalWithException()
Tests loading a definition file with optional and non optional configuration sources. |
void |
testLoadXMLWithSettings()
Tests whether XML settings can be inherited. |
void |
testLogErrorListener()
Tests whether a default log error listener is registered at the builder instance. |
void |
testMultiTenentConfiguration()
|
void |
testMultiTenentConfiguration2()
|
void |
testMultiTenentConfiguration3()
|
void |
testRemoveConfigurationProvider()
Tests removing configuration providers. |
void |
testSaveConfiguration()
This test doesn't test DefaultConfigurationBuilder. |
void |
testSetConfigurationBasePath()
Tests if the base path is correctly evaluated. |
void |
testSystemProperties()
|
void |
testValidation()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestWebdavConfigurationBuilder()
Method Detail |
---|
public void setUp() throws Exception
Exception
public void tearDown() throws Exception
Exception
public void testConfigurationDeclarationIsReserved()
public void testConfigurationDeclarationIsReservedAt()
public void testConfigurationDeclarationIsReservedOptional()
public void testConfigurationDeclarationGetAttributes()
public void testConfigurationDeclarationOptionalAttributeInvalid()
public void testAddConfigurationProvider()
public void testAddConfigurationProviderNull()
public void testAddConfigurationProviderNullTag()
public void testRemoveConfigurationProvider()
public void testConfigurationBeanFactoryCreateBean()
public void testConfigurationBeanFactoryCreateUnknownTag()
public void testLoadConfiguration() throws ConfigurationException
ConfigurationException
public void testLoadConfigurationFromFile() throws ConfigurationException
ConfigurationException
public void testSaveConfiguration() throws ConfigurationException
ConfigurationException
public void testLoadAdditional() throws ConfigurationException
ConfigurationException
public void testLogErrorListener()
public void testLoadOptional() throws Exception
Exception
public void testLoadOptionalErrorEvent() throws Exception
Exception
public void testLoadOptionalWithException() throws ConfigurationException
ConfigurationException
public void testLoadOptionalNonFileBased() throws ConfigurationException
ConfigurationException
public void testLoadOptionalBuilderForceCreate() throws ConfigurationException
ConfigurationException
public void testLoadOptionalForceCreateWithException() throws ConfigurationException
ConfigurationException
public void testLoadDifferentSources() throws ConfigurationException
ConfigurationException
public void testSetConfigurationBasePath() throws ConfigurationException
ConfigurationException
public void testComplexInitialization() throws ConfigurationException
ConfigurationException
public void testCombinedConfiguration() throws ConfigurationException
ConfigurationException
public void testCombinedConfigurationNoAdditional() throws ConfigurationException
ConfigurationException
public void testCombinedConfigurationListNodes() throws ConfigurationException
ConfigurationException
public void testLoadXMLWithSettings() throws ConfigurationException, IOException
ConfigurationException
IOException
public void testExtendedClass() throws ConfigurationException
ConfigurationException
public void testConfigurationProvider() throws ConfigurationException
ConfigurationException
public void testExtendedXMLConfigurationProvider() throws ConfigurationException
ConfigurationException
public void testGlobalLookup() throws Exception
Exception
public void testSystemProperties() throws Exception
Exception
public void testValidation() throws Exception
Exception
public void testMultiTenentConfiguration() throws Exception
Exception
public void testMultiTenentConfiguration2() throws Exception
Exception
public void testMultiTenentConfiguration3() throws Exception
Exception
public void testFileChanged() throws Exception
Exception
public void testFileChanged2() throws Exception
Exception
public Map<String,Object> getOptions()
getOptions
in interface FileOptionsProvider
public void configurationChanged(ConfigurationEvent event)
configurationChanged
in interface ConfigurationListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |