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

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

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 502705 2007-02-02 19:55:37Z oheger $
Author:
Oliver Heger

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
protected  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 junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

TestConfigurationNodePointerFactory

public TestConfigurationNodePointerFactory()
Method Detail

setUp

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