org.apache.commons.configuration.tree
Class TestViewNode

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.configuration.tree.TestViewNode
All Implemented Interfaces:
junit.framework.Test

public class TestViewNode
extends junit.framework.TestCase

Test class for ViewNode.

Version:
$Id: TestViewNode.java 439648 2006-09-02 20:42:10Z oheger $

Constructor Summary
TestViewNode()
           
 
Method Summary
protected  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 junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestViewNode

public TestViewNode()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.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-2008 The Apache Software Foundation. All Rights Reserved.