|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.configuration.TestPropertiesConfigurationLayout
public class TestPropertiesConfigurationLayout
Test class for PropertiesConfigurationLayout.
| Constructor Summary | |
|---|---|
TestPropertiesConfigurationLayout()
|
|
| Method Summary | |
|---|---|
void |
setUp()
|
void |
testBlancLines()
Tests whether blanc lines before a property are correctly detected. |
void |
testCombineComments()
Tests whether comments are combined for multiple occurrences. |
void |
testEventAdd()
Tests if a property add event is correctly processed. |
void |
testEventAddBefore()
Tests if a before update event is correctly ignored. |
void |
testEventAddExisting()
Tests if an add event is correctly processed if the affected property is already stored in the layout object. |
void |
testEventAddMultiple()
Tests adding a property multiple time through an event. |
void |
testEventClearConfig()
Tests if a clear event is correctly processed. |
void |
testEventDelete()
Tests if a property delete event is correctly processed. |
void |
testEventReload()
Tests if a reload update is correctly processed. |
void |
testEventReloadAfter()
Tests the event after a reload has been performed. |
void |
testEventSetNonExisting()
Tests if a set property event for a non existing property is correctly handled. |
void |
testGetNonExistingLayouData()
Tests accessing data for a property, which is not stored. |
void |
testGetNullLayouttData()
Tests accessing a property with a null key. |
void |
testHeaderComment()
Tests if a header comment is detected. |
void |
testHeaderCommentNull()
Tests fetching a canonical header comment when no comment is set. |
void |
testHeaderCommentWithBlancs()
Tests if a header comment containing blanc lines is correctly detected. |
void |
testHeaderCommentWithBlancsAndPropComment()
Tests if a header comment is correctly detected when it contains blanc lines and the first property has a comment, too. |
void |
testInit()
Tests a newly created instance. |
void |
testInitCopy()
Tests the copy constructor. |
void |
testInitCopyModify()
Tests if the copy and the original are independent from each other. |
void |
testInitNull()
Tests creating a layout object with a null configuration. |
void |
testIsSingleLine()
Tests the single line flag for a simple property definition. |
void |
testIsSingleLineMulti()
Tests the single line flag if there are multiple property definitions. |
void |
testReadAndWrite()
Tests whether the output of the layout object is identical to the source file (at least for simple properties files). |
void |
testReadSimple()
Tests reading a simple properties file. |
void |
testRecursiveLoadCall()
Tests a recursive load call. |
void |
testSave()
Tests if the content of the layout object is correctly written. |
void |
testSaveCommentForUnexistingProperty()
Tests saving when a comment for a non existing property is contained in the layout object. |
void |
testSaveEmptyLayout()
Tests saving an empty layout object. |
void |
testSaveForceSingleLine()
Tests the force single line flag. |
void |
testSetGlobalSeparator()
Tests setting the global separator. |
void |
testSetLineSeparator()
Tests setting the line separator. |
void |
testSetLineSeparatorInComments()
Tests whether the line separator is also taken into account within comments. |
void |
testSetNullComment()
Tests resetting a comment. |
void |
testSetSeparator()
Tests changing the separator for a property. |
void |
testTrimComment()
Tests the trimComment method. |
void |
testTrimCommentFalse()
Tests enforcing comment characters in a comment. |
void |
testTrimCommentTrainlingCR()
Tests trimming a comment with trailing CRs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestPropertiesConfigurationLayout()
| Method Detail |
|---|
public void setUp()
throws Exception
Exceptionpublic void testInit()
public void testInitNull()
public void testReadSimple()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testBlancLines()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testIsSingleLine()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testIsSingleLineMulti()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testCombineComments()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testHeaderComment()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testHeaderCommentWithBlancs()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testHeaderCommentWithBlancsAndPropComment()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic void testHeaderCommentNull()
public void testEventAdd()
public void testEventAddMultiple()
public void testEventAddExisting()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic void testEventSetNonExisting()
public void testEventDelete()
public void testEventClearConfig()
throws Exception
Exceptionpublic void testEventAddBefore()
public void testEventReload()
public void testEventReloadAfter()
public void testRecursiveLoadCall()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testReadAndWrite()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSave()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSaveForceSingleLine()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic void testTrimComment()
public void testTrimCommentTrainlingCR()
public void testTrimCommentFalse()
public void testGetNonExistingLayouData()
public void testGetNullLayouttData()
public void testSetNullComment()
public void testSaveCommentForUnexistingProperty()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSaveEmptyLayout()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic void testInitCopy()
public void testInitCopyModify()
public void testSetSeparator()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSetGlobalSeparator()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSetLineSeparator()
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void testSetLineSeparatorInComments()
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 | |||||||||