org.jaxen.test
Class XPathTestBase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jaxen.test.XPathTestBase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
JaxenXPathTestBase

public abstract class XPathTestBase
extends junit.framework.TestCase


Field Summary
protected static boolean debug
           
protected static java.lang.String TESTS_XML
           
protected static java.lang.String VAR_URI
           
protected static boolean verbose
           
 
Constructor Summary
protected XPathTestBase(java.lang.String name)
           
 
Method Summary
protected abstract  java.lang.Object getDocument(java.lang.String url)
           
protected abstract  org.jaxen.Navigator getNavigator()
           
 void log(java.lang.String text)
           
protected  void setUp()
           
 void testAbsoluteLocationPaths()
           
 void testAttributeAsContext()
           
 void testAttributeParent()
           
 void testAxisNodeOrdering()
           
 void testCDATASectionsAreIncludedInTextNodes()
           
 void testCorrectPredicateApplication()
           
 void testCountFunction()
           
 void testCountFunctionMore()
           
 void testDocumentFunction1()
           
 void testDocumentFunctionActual()
           
 void testDocumentFunctionContextExample()
           
 void testFloatingPointArithmetic()
           
 void testForParserErrors()
           
 void testGetNodeType()
           
 void testid53992()
           
 void testid54032()
           
 void testid54082()
           
 void testid54145()
           
 void testid54156()
           
 void testid54168()
           
 void testid54180()
           
 void testid54197()
           
 void testid54219()
           
 void testid54249()
           
 void testid54266()
           
 void testid54278()
           
 void testid54298()
           
 void testid54467()
           
 void testid54522()
           
 void testid54534()
           
 void testid54570()
           
 void testid54614()
           
 void testid54853()
           
 void testid54932()
           
 void testIntegerArithmetic()
           
 void testJaxen24()
           
 void testJaxen3()
           
 void testJaxen3dupe()
           
 void testJaxen58()
           
 void testLangFunction()
           
 void testNamespaceNodeAsContext()
           
 void testNamespaceNodeCounts()
           
 void testNamespaceNodeCounts1()
           
 void testNamespaceNodesHaveParent()
           
 void testNamespaceResolution()
           
 void testNamespaces()
           
 void testNamespacesAgain()
           
 void testNodesetEqualsNumber()
           
 void testNodesetEqualsString()
           
 void testNodeTypes()
           
 void testNoNamespace()
           
 void testNormalizeSpaceFunction()
           
 void testPositioning()
           
 void testPrecedingSiblingAxis()
           
 void testPrefixDoesntMatter()
           
 void testStringExtensionFunctions()
           
 void testStringFunction1()
           
 void testStringFunction2()
           
 void testStringFunction3()
           
 void testSubstringFunction()
           
 void testTextNodes()
           
 void testTranslateFunction()
           
 void testUnderscoresInNames()
           
 void testVariableLookup()
           
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VAR_URI

protected static java.lang.String VAR_URI

TESTS_XML

protected static java.lang.String TESTS_XML

verbose

protected static boolean verbose

debug

protected static boolean debug
Constructor Detail

XPathTestBase

protected XPathTestBase(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

log

public void log(java.lang.String text)

getNavigator

protected abstract org.jaxen.Navigator getNavigator()

getDocument

protected abstract java.lang.Object getDocument(java.lang.String url)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testGetNodeType

public void testGetNodeType()
                     throws org.jaxen.FunctionCallException,
                            org.jaxen.UnsupportedAxisException
Throws:
org.jaxen.FunctionCallException
org.jaxen.UnsupportedAxisException

testJaxen24

public void testJaxen24()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testJaxen58

public void testJaxen58()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testJaxen3

public void testJaxen3()
                throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testStringFunction1

public void testStringFunction1()
                         throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testStringFunction2

public void testStringFunction2()
                         throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testStringFunction3

public void testStringFunction3()
                         throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testJaxen3dupe

public void testJaxen3dupe()
                    throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testForParserErrors

public void testForParserErrors()
                         throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testUnderscoresInNames

public void testUnderscoresInNames()
                            throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNodesetEqualsString

public void testNodesetEqualsString()
                             throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNodesetEqualsNumber

public void testNodesetEqualsNumber()
                             throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testIntegerArithmetic

public void testIntegerArithmetic()
                           throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testFloatingPointArithmetic

public void testFloatingPointArithmetic()
                                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testPrecedingSiblingAxis

public void testPrecedingSiblingAxis()
                              throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testVariableLookup

public void testVariableLookup()
                        throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testAttributeParent

public void testAttributeParent()
                         throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testAttributeAsContext

public void testAttributeAsContext()
                            throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid53992

public void testid53992()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54032

public void testid54032()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54082

public void testid54082()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54145

public void testid54145()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54156

public void testid54156()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54168

public void testid54168()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54180

public void testid54180()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54197

public void testid54197()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54219

public void testid54219()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54249

public void testid54249()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54266

public void testid54266()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54278

public void testid54278()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54298

public void testid54298()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54467

public void testid54467()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54522

public void testid54522()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54534

public void testid54534()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54570

public void testid54570()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54614

public void testid54614()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNodeTypes

public void testNodeTypes()
                   throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testPositioning

public void testPositioning()
                     throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54853

public void testid54853()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testid54932

public void testid54932()
                 throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testCountFunction

public void testCountFunction()
                       throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testCountFunctionMore

public void testCountFunctionMore()
                           throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testCorrectPredicateApplication

public void testCorrectPredicateApplication()
                                     throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testAxisNodeOrdering

public void testAxisNodeOrdering()
                          throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testDocumentFunction1

public void testDocumentFunction1()
                           throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testDocumentFunctionContextExample

public void testDocumentFunctionContextExample()
                                        throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testDocumentFunctionActual

public void testDocumentFunctionActual()
                                throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testAbsoluteLocationPaths

public void testAbsoluteLocationPaths()
                               throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testTranslateFunction

public void testTranslateFunction()
                           throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testSubstringFunction

public void testSubstringFunction()
                           throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNormalizeSpaceFunction

public void testNormalizeSpaceFunction()
                                throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testStringExtensionFunctions

public void testStringExtensionFunctions()
                                  throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testLangFunction

public void testLangFunction()
                      throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNamespacesAgain

public void testNamespacesAgain()
                         throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testPrefixDoesntMatter

public void testPrefixDoesntMatter()
                            throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testCDATASectionsAreIncludedInTextNodes

public void testCDATASectionsAreIncludedInTextNodes()
                                             throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNamespaces

public void testNamespaces()
                    throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNoNamespace

public void testNoNamespace()
                     throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNamespaceResolution

public void testNamespaceResolution()
                             throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testTextNodes

public void testTextNodes()
                   throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNamespaceNodeCounts1

public void testNamespaceNodeCounts1()
                              throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNamespaceNodeCounts

public void testNamespaceNodeCounts()
                             throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNamespaceNodesHaveParent

public void testNamespaceNodesHaveParent()
                                  throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

testNamespaceNodeAsContext

public void testNamespaceNodeAsContext()
                                throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.