|
||||||||||
| 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 org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSaveWithOnlyGlobalSection()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testLoad()
throws Exception
HierarchicalINIConfiguration.
Exception
public void testLoadAlternativeSeparator()
throws Exception
Exception
public void testLoadFile()
throws org.apache.commons.configuration.ConfigurationException,
IOException
org.apache.commons.configuration.ConfigurationException
IOException
public void testLoadFileName()
throws org.apache.commons.configuration.ConfigurationException,
IOException
org.apache.commons.configuration.ConfigurationException
IOException
public void testLoadURL()
throws org.apache.commons.configuration.ConfigurationException,
IOException
org.apache.commons.configuration.ConfigurationException
IOExceptionpublic 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 org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetPropertyNoValue()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetPropertyNoKey()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGlobalProperty()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionsWithGlobal()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionsNoGlobal()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionsGlobalOnly()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionsDottedVar()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionsAdded()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionExisting()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionMerged()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionGlobal()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionGloabalMultiThreaded()
throws org.apache.commons.configuration.ConfigurationException,
InterruptedException
org.apache.commons.configuration.ConfigurationException
InterruptedException
public void testGetSectionGlobalNonExisting()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionNonExisting()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testLineContinuation()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testLineContinuationNone()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testLineContinuationQuoted()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testLineContinuationComment()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testLineContinuationQuotedComment()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testLineContinuationEmptyLine()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testLineContinuationAtEnd()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSaveKeysWithDelimiters()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testValueWithSemicolon()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSeparators()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testMultipleSeparators()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testMultipleSeparatorsQuoted()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSaveClearedSection()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testMergeDuplicateSection()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testGetSectionNonExistingManipulate()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic void testGetSectionDuplicate()
public void testValueWithDelimiters()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testListParsingDisabled()
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 | |||||||||