org.apache.commons.configuration
Class TestMapConfiguration

java.lang.Object
  extended by org.apache.commons.configuration.TestAbstractConfiguration
      extended by org.apache.commons.configuration.TestMapConfiguration

public class TestMapConfiguration
extends TestAbstractConfiguration

Tests for MapConfiguration.

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

Constructor Summary
TestMapConfiguration()
           
 
Method Summary
protected  AbstractConfiguration getConfiguration()
          Return an abstract configuration with the following data:
key1 = value1 key2 = value2 list = value1, value2 listesc = value1\\,value2
protected  AbstractConfiguration getEmptyConfiguration()
          Return an empty configuration.
 void testAddProperty()
          Tests adding another value to an existing property.
 void testClone()
           
 void testCloneModify()
          Tests if the cloned configuration is decoupled from the original.
 void testGetMap()
           
 void testGetPropertyTrim()
          Tests querying a property when trimming is active.
 void testGetPropertyTrimDisabled()
          Tests querying a property when trimming is disabled.
 void testGetPropertyTrimNoSplit()
          Tests querying a property when trimming is enabled, but list splitting is disabled.
 
Methods inherited from class org.apache.commons.configuration.TestAbstractConfiguration
testAddPropertyDirect, testClearProperty, testContainsKey, testGetBigIntegerConversion, testGetKeys, testGetProperty, testIsEmpty, testList, testListEscaped, testSetLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMapConfiguration

public TestMapConfiguration()
Method Detail

getConfiguration

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

Specified by:
getConfiguration in class TestAbstractConfiguration

getEmptyConfiguration

protected AbstractConfiguration getEmptyConfiguration()
Description copied from class: TestAbstractConfiguration
Return an empty configuration.

Specified by:
getEmptyConfiguration in class TestAbstractConfiguration

testGetMap

public void testGetMap()

testClone

public void testClone()

testCloneModify

public void testCloneModify()
Tests if the cloned configuration is decoupled from the original.


testAddProperty

public void testAddProperty()
Tests adding another value to an existing property.


testGetPropertyTrim

public void testGetPropertyTrim()
Tests querying a property when trimming is active.


testGetPropertyTrimDisabled

public void testGetPropertyTrimDisabled()
Tests querying a property when trimming is disabled.


testGetPropertyTrimNoSplit

public void testGetPropertyTrimNoSplit()
Tests querying a property when trimming is enabled, but list splitting is disabled. In this case no trimming is performed (trimming only works if list splitting is enabled).



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