|
||||||||||
| 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.TestFileConfiguration
public class TestFileConfiguration
| Constructor Summary | |
|---|---|
TestFileConfiguration()
|
|
| Method Summary | |
|---|---|
void |
testClone()
Tests cloning a file based configuration. |
void |
testCreateFile1()
|
void |
testCreateFile2()
|
void |
testCreateFile3()
|
void |
testFileOverwrite()
Tests if the URL used by the load() method is also used by save(). |
void |
testGetFile()
Tests the getFile() method. |
void |
testGetFileAfterLoad()
Tests whether getFile() returns a valid file after a configuration has been loaded. |
void |
testInitFromClassPath()
Tests whether the constructor behaves the same as setFileName() when the configuration source is in the classpath. |
void |
testLoadDirectory()
Checks that loading a directory instead of a file throws an exception. |
void |
testLoadFromClassPath()
Tests the loading of configuration file in a Combined configuration when the configuration source is in the classpath. |
void |
testLoadMultiple()
Tests whether calling load() multiple times changes the source. |
void |
testLocations()
|
void |
testLogErrorListener()
Tests whether an error log listener was registered at the configuration. |
void |
testPathWithSpaces()
Tests loading and saving a configuration file with a complicated path name including spaces. |
void |
testReloadError()
Tests handling of errors in the reload() method. |
void |
testReloadingWithAutoSave()
Tests setting a file changed reloading strategy together with the auto save feature. |
void |
testSaveInvalidURL()
Tests if invalid URLs cause an exception. |
void |
testSaveWithoutFileName()
Tests to invoke save() without explicitely setting a file name. |
void |
testSetURL()
|
void |
testSetURLWithParams()
|
void |
testWithConfigurationFactory()
Tests collaboration with ConfigurationFactory: Is the base path set on loading is valid in file based configurations? |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 TestFileConfiguration()
| Method Detail |
|---|
public void testSetURL()
throws java.lang.Exception
java.lang.Exception
public void testSetURLWithParams()
throws java.lang.Exception
java.lang.Exception
public void testLocations()
throws java.lang.Exception
java.lang.Exception
public void testCreateFile1()
throws java.lang.Exception
java.lang.Exception
public void testCreateFile2()
throws java.lang.Exception
java.lang.Exception
public void testCreateFile3()
throws java.lang.Exception
java.lang.Exception
public void testWithConfigurationFactory()
throws java.lang.Exception
java.lang.Exception - if an error occurs
public void testSaveInvalidURL()
throws java.lang.Exception
java.lang.Exception
public void testFileOverwrite()
throws java.lang.Exception
java.lang.Exception
public void testReloadingWithAutoSave()
throws java.lang.Exception
java.lang.Exception
public void testPathWithSpaces()
throws java.lang.Exception
java.lang.Exception
public void testGetFile()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetFileAfterLoad()
throws org.apache.commons.configuration.ConfigurationException,
java.io.IOException
org.apache.commons.configuration.ConfigurationException
java.io.IOException
public void testLoadMultiple()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSaveWithoutFileName()
throws java.lang.Exception
java.lang.Exceptionpublic void testLoadDirectory()
public void testInitFromClassPath()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testLoadFromClassPath()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testClone()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic void testLogErrorListener()
public void testReloadError()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||