org.apache.commons.configuration
Class TestINIConfiguration

java.lang.Object
  extended by org.apache.commons.configuration.TestINIConfiguration

public class TestINIConfiguration
extends Object

Test class for INIConfiguration.

Version:
$Id: TestINIConfiguration.java 1224770 2011-12-26 17:18:36Z oheger $
Author:
Trevor Miller

Constructor Summary
TestINIConfiguration()
           
 
Method Summary
 void testGetSections()
          Test of getSections method, of class INIConfiguration.
 void testIsCommentLine()
          Test of isCommentLine method, of class INIConfiguration.
 void testIsSectionLine()
          Test of isSectionLine method, of class INIConfiguration.
 void testLoad()
          Test of load method, of class INIConfiguration.
 void testLoadAlternativeSeparator()
          Tests the load() method when the alternative value separator is used (a ':' for '=').
 void testQuotedValue()
           
 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 INIConfiguration.
 void testValueWithComment()
           
 void testWriteValueWithCommentChar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestINIConfiguration

public TestINIConfiguration()
Method Detail

testSave

public void testSave()
              throws Exception
Test of save method, of class INIConfiguration.

Throws:
Exception

testLoad

public void testLoad()
              throws Exception
Test of load method, of class INIConfiguration.

Throws:
Exception

testLoadAlternativeSeparator

public void testLoadAlternativeSeparator()
                                  throws Exception
Tests the load() method when the alternative value separator is used (a ':' for '=').

Throws:
Exception

testIsCommentLine

public void testIsCommentLine()
Test of isCommentLine method, of class INIConfiguration.


testIsSectionLine

public void testIsSectionLine()
Test of isSectionLine method, of class INIConfiguration.


testGetSections

public void testGetSections()
Test of getSections method, of class INIConfiguration.


testQuotedValue

public void testQuotedValue()
                     throws Exception
Throws:
Exception

testQuotedValueWithQuotes

public void testQuotedValueWithQuotes()
                               throws Exception
Throws:
Exception

testValueWithComment

public void testValueWithComment()
                          throws Exception
Throws:
Exception

testQuotedValueWithComment

public void testQuotedValueWithComment()
                                throws Exception
Throws:
Exception

testQuotedValueWithSingleQuotes

public void testQuotedValueWithSingleQuotes()
                                     throws Exception
Throws:
Exception

testWriteValueWithCommentChar

public void testWriteValueWithCommentChar()
                                   throws Exception
Throws:
Exception

testQuotedValueWithWhitespace

public void testQuotedValueWithWhitespace()
                                   throws Exception
Tests whether whitespace is left unchanged for quoted values.

Throws:
Exception

testQuotedValueWithWhitespaceAndComment

public void testQuotedValueWithWhitespaceAndComment()
                                             throws Exception
Tests a quoted value with space and a comment.

Throws:
Exception


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.