Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.jxpath.ri
Class JXPathCompiledExpressionTest  view JXPathCompiledExpressionTest download JXPathCompiledExpressionTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.jxpath.JXPathTestCase
              extended byorg.apache.commons.jxpath.ri.JXPathCompiledExpressionTest
All Implemented Interfaces:
junit.framework.Test

public class JXPathCompiledExpressionTest
extends org.apache.commons.jxpath.JXPathTestCase

Test compiler.

Version:
$Revision: 1.5 $ $Date: 2004/02/29 14:17:44 $

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
JXPathCompiledExpressionTest(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
private  void assertXPathExpression(java.lang.String xpath, java.lang.Class expectedClass)
           
private  void assertXPathExpression(java.lang.String xpath, java.lang.Class expectedClass, java.lang.String expected)
          Compiles the xpath into an Expression, checks the expression class, converts the expression to string and checks that the string matches the expected one.
 void testConstant()
           
 void testCoreFunction()
           
 void testCoreOperationAnd()
           
 void testCoreOperationDivide()
           
 void testCoreOperationEqual()
           
 void testCoreOperationGreaterThan()
           
 void testCoreOperationGreaterThanOrEqual()
           
 void testCoreOperationLessThan()
           
 void testCoreOperationLessThanOrEqual()
           
 void testCoreOperationMinus()
           
 void testCoreOperationMod()
           
 void testCoreOperationMultiply()
           
 void testCoreOperationNameAttributeTest()
           
 void testCoreOperationNotEqual()
           
 void testCoreOperationOr()
           
 void testCoreOperationSum()
           
 void testCoreOperationUnaryMinus()
           
 void testCoreOperationUnion()
           
 void testExpressionPath()
           
 void testExtensionFunction()
           
 void testLocationPathAxisAttribute()
           
 void testLocationPathAxisChild()
           
 void testLocationPathAxisDescendant()
           
 void testLocationPathAxisDescendantOrSelf()
           
 void testLocationPathAxisOther()
           
 void testLocationPathAxisParent()
           
 void testLocationPathAxisSelf()
           
 void testLocationPathNodeTest()
           
 void testVariableReference()
           
 
Methods inherited from class org.apache.commons.jxpath.JXPathTestCase
assertDocumentOrder, assertXPathCreatePath, assertXPathCreatePathAndSetValue, assertXPathNodeType, assertXPathPointer, assertXPathPointerIterator, assertXPathPointerLenient, assertXPathSetValue, assertXPathSetValue, assertXPathValue, assertXPathValue, assertXPathValueAndPointer, assertXPathValueIterator, assertXPathValueLenient, assertXPathValueType, list, list, list, list, list, list, list, list, set, set, set, set, set
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JXPathCompiledExpressionTest

public JXPathCompiledExpressionTest(java.lang.String name)
Construct a new instance of this test case.

Method Detail

testConstant

public void testConstant()

testCoreFunction

public void testCoreFunction()

testCoreOperationAnd

public void testCoreOperationAnd()

testCoreOperationOr

public void testCoreOperationOr()

testCoreOperationEqual

public void testCoreOperationEqual()

testCoreOperationNameAttributeTest

public void testCoreOperationNameAttributeTest()

testCoreOperationNotEqual

public void testCoreOperationNotEqual()

testCoreOperationLessThan

public void testCoreOperationLessThan()

testCoreOperationLessThanOrEqual

public void testCoreOperationLessThanOrEqual()

testCoreOperationGreaterThan

public void testCoreOperationGreaterThan()

testCoreOperationGreaterThanOrEqual

public void testCoreOperationGreaterThanOrEqual()

testCoreOperationDivide

public void testCoreOperationDivide()

testCoreOperationMod

public void testCoreOperationMod()

testCoreOperationMultiply

public void testCoreOperationMultiply()

testCoreOperationMinus

public void testCoreOperationMinus()

testCoreOperationSum

public void testCoreOperationSum()

testCoreOperationUnaryMinus

public void testCoreOperationUnaryMinus()

testCoreOperationUnion

public void testCoreOperationUnion()

testExpressionPath

public void testExpressionPath()

testExtensionFunction

public void testExtensionFunction()

testLocationPathAxisSelf

public void testLocationPathAxisSelf()

testLocationPathAxisChild

public void testLocationPathAxisChild()

testLocationPathAxisParent

public void testLocationPathAxisParent()

testLocationPathAxisAttribute

public void testLocationPathAxisAttribute()

testLocationPathAxisDescendant

public void testLocationPathAxisDescendant()

testLocationPathAxisDescendantOrSelf

public void testLocationPathAxisDescendantOrSelf()

testLocationPathAxisOther

public void testLocationPathAxisOther()

testLocationPathNodeTest

public void testLocationPathNodeTest()

testVariableReference

public void testVariableReference()

assertXPathExpression

private void assertXPathExpression(java.lang.String xpath,
                                   java.lang.Class expectedClass,
                                   java.lang.String expected)
Compiles the xpath into an Expression, checks the expression class, converts the expression to string and checks that the string matches the expected one.


assertXPathExpression

private void assertXPathExpression(java.lang.String xpath,
                                   java.lang.Class expectedClass)