org.apache.commons.configuration.tree.xpath
Class TestConfigurationNodePointer

java.lang.Object
  extended by org.apache.commons.configuration.tree.xpath.AbstractXPathTest
      extended by org.apache.commons.configuration.tree.xpath.TestConfigurationNodePointer

public class TestConfigurationNodePointer
extends AbstractXPathTest

Test class for ConfigurationNodePointer.

Version:
$Id: TestConfigurationNodePointer.java 1226104 2011-12-31 15:37:16Z oheger $
Author:
Commons Configuration team

Field Summary
 
Fields inherited from class org.apache.commons.configuration.tree.xpath.AbstractXPathTest
ATTR_NAME, CHILD_COUNT, CHILD_NAME1, CHILD_NAME2, LEVEL_COUNT, root
 
Constructor Summary
TestConfigurationNodePointer()
           
 
Method Summary
 void setUp()
           
 void testCompareChildNodePointersAttributes()
          Tests comparing child node pointers for attribute nodes.
 void testCompareChildNodePointersChildAndAttribute()
          tests comparing child node pointers for both child and attribute nodes.
 void testCompareChildNodePointersChildren()
          Tests comparing child node pointers for child nodes.
 void testCompareChildNodePointersInvalidChildren()
          Tests comparing child node pointers for child nodes that do not belong to the parent node.
 void testIsAttribute()
          Tests the attribute flag.
 void testIsLeave()
          Tests if leaves in the tree are correctly detected.
 void testIterators()
          Tests the iterators returned by the node pointer.
 
Methods inherited from class org.apache.commons.configuration.tree.xpath.AbstractXPathTest
constructHierarchy, iterationElements, iteratorSize, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestConfigurationNodePointer

public TestConfigurationNodePointer()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class AbstractXPathTest
Throws:
Exception

testCompareChildNodePointersChildren

public void testCompareChildNodePointersChildren()
Tests comparing child node pointers for child nodes.


testCompareChildNodePointersAttributes

public void testCompareChildNodePointersAttributes()
Tests comparing child node pointers for attribute nodes.


testCompareChildNodePointersChildAndAttribute

public void testCompareChildNodePointersChildAndAttribute()
tests comparing child node pointers for both child and attribute nodes.


testCompareChildNodePointersInvalidChildren

public void testCompareChildNodePointersInvalidChildren()
Tests comparing child node pointers for child nodes that do not belong to the parent node.


testIsAttribute

public void testIsAttribute()
Tests the attribute flag.


testIsLeave

public void testIsLeave()
Tests if leaves in the tree are correctly detected.


testIterators

public void testIterators()
Tests the iterators returned by the node pointer.



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