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

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

public class TestConfigurationNodePointerFactory
extends AbstractXPathTest

Test class for ConfigurationNodePointerFactory. This class does not directly call the factory's methods, but rather checks if it can be installed in a JXPathContext and if XPath expressions can be evaluated.

Version:
$Id: TestConfigurationNodePointerFactory.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
TestConfigurationNodePointerFactory()
           
 
Method Summary
 void setUp()
           
 void testAttributes()
          Tests accessing attributes.
 void testFollowingSiblingAxis()
          Tests accessing the following sibling axis.
 void testIndices()
          Tests using indices to specify elements.
 void testParentAxis()
          Tests accessing the parent axis.
 void testPrecedingSiblingAxis()
          Tests accessing the preceding sibling axis.
 void testSimpleXPath()
          Tests simple XPath expressions.
 void testText()
          Tests accessing a node's text.
 
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

TestConfigurationNodePointerFactory

public TestConfigurationNodePointerFactory()
Method Detail

setUp

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

testSimpleXPath

public void testSimpleXPath()
Tests simple XPath expressions.


testIndices

public void testIndices()
Tests using indices to specify elements.


testAttributes

public void testAttributes()
Tests accessing attributes.


testText

public void testText()
Tests accessing a node's text.


testParentAxis

public void testParentAxis()
Tests accessing the parent axis.


testFollowingSiblingAxis

public void testFollowingSiblingAxis()
Tests accessing the following sibling axis.


testPrecedingSiblingAxis

public void testPrecedingSiblingAxis()
Tests accessing the preceding sibling axis.



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