org.apache.commons.configuration.tree
Class TestUnionCombiner

java.lang.Object
  extended by org.apache.commons.configuration.tree.AbstractCombinerTest
      extended by org.apache.commons.configuration.tree.TestUnionCombiner

public class TestUnionCombiner
extends AbstractCombinerTest

Test class for UnionCombiner.

Version:
$Id: TestUnionCombiner.java 1225911 2011-12-30 20:19:10Z oheger $

Field Summary
 
Fields inherited from class org.apache.commons.configuration.tree.AbstractCombinerTest
combiner
 
Constructor Summary
TestUnionCombiner()
           
 
Method Summary
protected  NodeCombiner createCombiner()
          Creates the combiner.
 void testAttributes()
          Tests combination of attributes.
 void testLists()
          Tests combination of lists.
 void testSimpleValues()
          Tests combination of simple values (no lists).
 void testSimpleValuesWithAttributes()
          Tests combinations of elements with attributes.
 void testTableList()
          Tests combining a list of tables.
 
Methods inherited from class org.apache.commons.configuration.tree.AbstractCombinerTest
createCombinedConfiguration, setUp, testInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestUnionCombiner

public TestUnionCombiner()
Method Detail

createCombiner

protected NodeCombiner createCombiner()
Creates the combiner.

Specified by:
createCombiner in class AbstractCombinerTest
Returns:
the combiner

testSimpleValues

public void testSimpleValues()
                      throws ConfigurationException
Tests combination of simple values (no lists).

Throws:
ConfigurationException

testSimpleValuesWithAttributes

public void testSimpleValuesWithAttributes()
                                    throws ConfigurationException
Tests combinations of elements with attributes.

Throws:
ConfigurationException

testAttributes

public void testAttributes()
                    throws ConfigurationException
Tests combination of attributes.

Throws:
ConfigurationException

testLists

public void testLists()
               throws ConfigurationException
Tests combination of lists.

Throws:
ConfigurationException

testTableList

public void testTableList()
                   throws ConfigurationException
Tests combining a list of tables. Per default the table elements will be combined. But if they are defined as list elements, the resulting tree should contain two table nodes.

Throws:
ConfigurationException


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