org.apache.commons.configuration
Class TestAbstractConfiguration

java.lang.Object
  extended by org.apache.commons.configuration.TestAbstractConfiguration
Direct Known Subclasses:
TestAppletConfiguration, TestMapConfiguration, TestServletConfiguration, TestServletContextConfiguration, TestServletFilterConfiguration, TestServletRequestConfiguration

public abstract class TestAbstractConfiguration
extends Object

Abstract TestCase for implementations of AbstractConfiguration.

Version:
$Id: TestAbstractConfiguration.java 1222465 2011-12-22 21:32:56Z oheger $
Author:
Emmanuel Bourg

Constructor Summary
TestAbstractConfiguration()
           
 
Method Summary
protected abstract  AbstractConfiguration getConfiguration()
          Return an abstract configuration with the following data:
key1 = value1 key2 = value2 list = value1, value2 listesc = value1\\,value2
protected abstract  AbstractConfiguration getEmptyConfiguration()
          Return an empty configuration.
 void testAddPropertyDirect()
           
 void testClearProperty()
           
 void testContainsKey()
           
 void testGetBigIntegerConversion()
          Tests the exception message triggered by the conversion to BigInteger.
 void testGetKeys()
           
 void testGetProperty()
           
 void testIsEmpty()
           
 void testList()
           
 void testListEscaped()
          Tests whether the escape character for list delimiters is recocknized and removed.
 void testSetLogger()
          Tests accessing the configuration's logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAbstractConfiguration

public TestAbstractConfiguration()
Method Detail

getConfiguration

protected abstract AbstractConfiguration getConfiguration()
Return an abstract configuration with the following data:
 key1 = value1
 key2 = value2
 list = value1, value2
 listesc = value1\\,value2
 


getEmptyConfiguration

protected abstract AbstractConfiguration getEmptyConfiguration()
Return an empty configuration.


testGetProperty

public void testGetProperty()

testList

public void testList()

testListEscaped

public void testListEscaped()
Tests whether the escape character for list delimiters is recocknized and removed.


testAddPropertyDirect

public void testAddPropertyDirect()

testIsEmpty

public void testIsEmpty()

testContainsKey

public void testContainsKey()

testClearProperty

public void testClearProperty()

testGetKeys

public void testGetKeys()

testSetLogger

public void testSetLogger()
Tests accessing the configuration's logger.


testGetBigIntegerConversion

public void testGetBigIntegerConversion()
Tests the exception message triggered by the conversion to BigInteger. This test is related to CONFIGURATION-357.



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