|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.TestHierarchicalINIConfiguration
public class TestHierarchicalINIConfiguration
Test class for HierarchicalINIConfiguration.
Constructor Summary | |
---|---|
TestHierarchicalINIConfiguration()
|
Method Summary | |
---|---|
void |
tearDown()
|
void |
testGetPropertyNoKey()
Tests a property that has no key. |
void |
testGetPropertyNoValue()
Tests a property that has no value. |
void |
testGetSectionDuplicate()
Tests whether getSection() can deal with duplicate sections. |
void |
testGetSectionExisting()
Tests querying the properties of an existing section. |
void |
testGetSectionGloabalMultiThreaded()
Tests concurrent access to the global section. |
void |
testGetSectionGlobal()
Tests querying the content of the global section. |
void |
testGetSectionGlobalNonExisting()
Tests querying the content of the global section if there is none. |
void |
testGetSectionMerged()
Tests querying the properties of a section that was merged from two sections with the same name. |
void |
testGetSectionNonExisting()
Tests querying a non existing section. |
void |
testGetSectionNonExistingManipulate()
Tests whether a section that was created by getSection() can be manipulated. |
void |
testGetSections()
Test of getSections method, of class HierarchicalINIConfiguration
. |
void |
testGetSectionsAdded()
Tests whether a section added later is also found by getSections(). |
void |
testGetSectionsDottedVar()
Tests whether variables containing a dot are not misinterpreted as sections. |
void |
testGetSectionsGlobalOnly()
Tests whether the sections of a configuration can be queried that contains only a global section. |
void |
testGetSectionsNoGlobal()
Tests querying the sections if there is no global section. |
void |
testGetSectionsWithGlobal()
Tests querying the sections if a global section if available. |
void |
testGlobalProperty()
Tests reading a property from the global section. |
void |
testIsCommentLine()
Test of isCommentLine method, of class HierarchicalINIConfiguration . |
void |
testIsSectionLine()
Test of isSectionLine method, of class HierarchicalINIConfiguration . |
void |
testLineContinuation()
Tests a property whose value spans multiple lines. |
void |
testLineContinuationAtEnd()
Tests a line continuation at the end of the file. |
void |
testLineContinuationComment()
Tests a property whose value spans multiple lines with a comment. |
void |
testLineContinuationEmptyLine()
Tests a multi-line property value with an empty line. |
void |
testLineContinuationNone()
Tests a property value that ends on a backslash, which is no line continuation character. |
void |
testLineContinuationQuoted()
Tests a property whose value spans multiple lines when quoting is involved. |
void |
testLineContinuationQuotedComment()
Tests a property with a quoted value spanning multiple lines and a comment. |
void |
testListParsingDisabled()
Tests whether parsing of lists can be disabled. |
void |
testLoad()
Test of load method, of class HierarchicalINIConfiguration . |
void |
testLoadAlternativeSeparator()
Tests the load() method when the alternative value separator is used (a ':' for '='). |
void |
testLoadFile()
Tests loading a configuration from a File. |
void |
testLoadFileName()
Tests loading a configuration from a file name. |
void |
testLoadURL()
Tests loading a configuration from a URL. |
void |
testMergeDuplicateSection()
Tests whether a duplicate session is merged. |
void |
testMultipleSeparators()
Tests property definitions containing multiple separators. |
void |
testMultipleSeparatorsQuoted()
Tests property definitions containing multiple separators that are quoted. |
void |
testQuotedValue()
|
void |
testQuotedValueEmpty()
Tests an empty quoted value. |
void |
testQuotedValueWithComment()
|
void |
testQuotedValueWithQuotes()
|
void |
testQuotedValueWithSingleQuotes()
|
void |
testQuotedValueWithWhitespace()
Tests whether whitespace is left unchanged for quoted values. |
void |
testQuotedValueWithWhitespaceAndComment()
Tests a quoted value with space and a comment. |
void |
testSave()
Test of save method, of class HierarchicalINIConfiguration . |
void |
testSaveClearedSection()
Tests whether a section that has been cleared can be manipulated and saved later. |
void |
testSaveKeysWithDelimiters()
Tests whether a configuration can be saved that contains section keys with delimiter characters. |
void |
testSaveWithGlobalSection()
Tests saving a configuration that contains a global section. |
void |
testSaveWithOnlyGlobalSection()
Tests whether a configuration that contains only a global section can be saved correctly. |
void |
testSeparators()
Tests whether the different separators with or without whitespace are recognized. |
void |
testValueWithComment()
|
void |
testValueWithDelimiters()
Tests whether the list delimiter character is recognized. |
void |
testValueWithSemicolon()
Tests whether a value which contains a semicolon can be loaded successfully. |
void |
testWriteValueWithCommentChar()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestHierarchicalINIConfiguration()
Method Detail |
---|
public void tearDown() throws Exception
Exception
public void testSave() throws Exception
HierarchicalINIConfiguration
.
Exception
public void testSaveWithGlobalSection() throws ConfigurationException
ConfigurationException
public void testSaveWithOnlyGlobalSection() throws ConfigurationException
ConfigurationException
public void testLoad() throws Exception
HierarchicalINIConfiguration
.
Exception
public void testLoadAlternativeSeparator() throws Exception
Exception
public void testLoadFile() throws ConfigurationException, IOException
ConfigurationException
IOException
public void testLoadFileName() throws ConfigurationException, IOException
ConfigurationException
IOException
public void testLoadURL() throws ConfigurationException, IOException
ConfigurationException
IOException
public void testIsCommentLine()
HierarchicalINIConfiguration
.
public void testIsSectionLine()
HierarchicalINIConfiguration
.
public void testGetSections()
HierarchicalINIConfiguration
.
public void testQuotedValue() throws Exception
Exception
public void testQuotedValueWithQuotes() throws Exception
Exception
public void testValueWithComment() throws Exception
Exception
public void testQuotedValueWithComment() throws Exception
Exception
public void testQuotedValueWithSingleQuotes() throws Exception
Exception
public void testWriteValueWithCommentChar() throws Exception
Exception
public void testQuotedValueWithWhitespace() throws Exception
Exception
public void testQuotedValueWithWhitespaceAndComment() throws Exception
Exception
public void testQuotedValueEmpty() throws ConfigurationException
ConfigurationException
public void testGetPropertyNoValue() throws ConfigurationException
ConfigurationException
public void testGetPropertyNoKey() throws ConfigurationException
ConfigurationException
public void testGlobalProperty() throws ConfigurationException
ConfigurationException
public void testGetSectionsWithGlobal() throws ConfigurationException
ConfigurationException
public void testGetSectionsNoGlobal() throws ConfigurationException
ConfigurationException
public void testGetSectionsGlobalOnly() throws ConfigurationException
ConfigurationException
public void testGetSectionsDottedVar() throws ConfigurationException
ConfigurationException
public void testGetSectionsAdded() throws ConfigurationException
ConfigurationException
public void testGetSectionExisting() throws ConfigurationException
ConfigurationException
public void testGetSectionMerged() throws ConfigurationException
ConfigurationException
public void testGetSectionGlobal() throws ConfigurationException
ConfigurationException
public void testGetSectionGloabalMultiThreaded() throws ConfigurationException, InterruptedException
ConfigurationException
InterruptedException
public void testGetSectionGlobalNonExisting() throws ConfigurationException
ConfigurationException
public void testGetSectionNonExisting() throws ConfigurationException
ConfigurationException
public void testLineContinuation() throws ConfigurationException
ConfigurationException
public void testLineContinuationNone() throws ConfigurationException
ConfigurationException
public void testLineContinuationQuoted() throws ConfigurationException
ConfigurationException
public void testLineContinuationComment() throws ConfigurationException
ConfigurationException
public void testLineContinuationQuotedComment() throws ConfigurationException
ConfigurationException
public void testLineContinuationEmptyLine() throws ConfigurationException
ConfigurationException
public void testLineContinuationAtEnd() throws ConfigurationException
ConfigurationException
public void testSaveKeysWithDelimiters() throws ConfigurationException
ConfigurationException
public void testValueWithSemicolon() throws ConfigurationException
ConfigurationException
public void testSeparators() throws ConfigurationException
ConfigurationException
public void testMultipleSeparators() throws ConfigurationException
ConfigurationException
public void testMultipleSeparatorsQuoted() throws ConfigurationException
ConfigurationException
public void testSaveClearedSection() throws ConfigurationException
ConfigurationException
public void testMergeDuplicateSection() throws ConfigurationException
ConfigurationException
public void testGetSectionNonExistingManipulate() throws ConfigurationException
ConfigurationException
public void testGetSectionDuplicate()
public void testValueWithDelimiters() throws ConfigurationException
ConfigurationException
public void testListParsingDisabled() throws ConfigurationException
ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |