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

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

public class TestConfigurationNodeIteratorChildren
extends AbstractXPathTest

Test class for ConfigurationNodeIteratorChildren.

Version:
$Id: TestConfigurationNodeIteratorChildren.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
TestConfigurationNodeIteratorChildren()
           
 
Method Summary
 void setUp()
           
 void testIterateAllChildren()
          Tests to iterate over all children of the root node.
 void testIterateReverse()
          Tests a reverse iteration.
 void testIterateStartsWith()
          Tests defining a start node for the iteration.
 void testIterateStartsWithInvalid()
          Tests iteration with an invalid start node.
 void testIterateStartsWithReverse()
          Tests defining a start node for a reverse iteration.
 void testIterateWithNameTest()
          Tests using a node test that selects a certain sub node name.
 void testIterateWithNodeType()
          Tests using a type test for nodes.
 void testIterateWithPrefixTest()
          Tests using a node test that defines a namespace prefix.
 void testIterateWithUnknownTest()
          Tests using a not supported test class.
 void testIterateWithUnknownType()
          Tests using a type test for a non supported type.
 void testIterateWithWildcardTest()
          Tests using a node test with a wildcard name.
 
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

TestConfigurationNodeIteratorChildren

public TestConfigurationNodeIteratorChildren()
Method Detail

setUp

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

testIterateAllChildren

public void testIterateAllChildren()
Tests to iterate over all children of the root node.


testIterateReverse

public void testIterateReverse()
Tests a reverse iteration.


testIterateWithWildcardTest

public void testIterateWithWildcardTest()
Tests using a node test with a wildcard name.


testIterateWithPrefixTest

public void testIterateWithPrefixTest()
Tests using a node test that defines a namespace prefix. Because namespaces are not supported, no elements should be in the iteration.


testIterateWithNameTest

public void testIterateWithNameTest()
Tests using a node test that selects a certain sub node name.


testIterateWithUnknownTest

public void testIterateWithUnknownTest()
Tests using a not supported test class. This should yield an empty iteration.


testIterateWithNodeType

public void testIterateWithNodeType()
Tests using a type test for nodes. This should return all nodes.


testIterateWithUnknownType

public void testIterateWithUnknownType()
Tests using a type test for a non supported type. This should return an empty iteration.


testIterateStartsWith

public void testIterateStartsWith()
Tests defining a start node for the iteration.


testIterateStartsWithReverse

public void testIterateStartsWithReverse()
Tests defining a start node for a reverse iteration.


testIterateStartsWithInvalid

public void testIterateStartsWithInvalid()
Tests iteration with an invalid start node. This should cause the iteration to start at the first position.



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