org.apache.commons.configuration.tree
Class TestViewNode

java.lang.Object
  extended by org.apache.commons.configuration.tree.TestViewNode

public class TestViewNode
extends Object

Test class for ViewNode.

Version:
$Id: TestViewNode.java 1226098 2011-12-31 15:18:45Z oheger $

Constructor Summary
TestViewNode()
           
 
Method Summary
 void setUp()
           
 void testAddAttribute()
          Tests adding an attribute to the view node.
 void testAddChild()
          Tests adding a child to the view node.
 void testAddNullAttribute()
          Tests adding a null attribute to the view node.
 void testAddNullChild()
          Tests adding a null child to the view node.
 void testAppendAttributes()
          tests appending all attributes to a view node.
 void testAppendChildren()
          Tests appending all children to a view node.
 void testAppendNullAttributes()
          Tests appending attributes from a null source.
 void testAppendNullChildren()
          Tests appending children from a null source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestViewNode

public TestViewNode()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

testAddChild

public void testAddChild()
Tests adding a child to the view node.


testAddNullChild

public void testAddNullChild()
Tests adding a null child to the view node. This should throw an exception.


testAddAttribute

public void testAddAttribute()
Tests adding an attribute to the view node.


testAddNullAttribute

public void testAddNullAttribute()
Tests adding a null attribute to the view node. This should cause an exception.


testAppendChildren

public void testAppendChildren()
Tests appending all children to a view node.


testAppendNullChildren

public void testAppendNullChildren()
Tests appending children from a null source. This should be a noop.


testAppendAttributes

public void testAppendAttributes()
tests appending all attributes to a view node.


testAppendNullAttributes

public void testAppendNullAttributes()
Tests appending attributes from a null source. This should be a noop.



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