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

Quick Search    Search Deep

org.apache.commons.jxpath.ri.axes
Class SimplePathInterpreterTest  view SimplePathInterpreterTest download SimplePathInterpreterTest.java

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

public class SimplePathInterpreterTest
extends junit.framework.TestCase


Field Summary
private  TestBeanWithNode bean
           
private  org.apache.commons.jxpath.JXPathContext context
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
SimplePathInterpreterTest(java.lang.String name)
          Constructor for SimplePathInterpreterTest.
 
Method Summary
private  void assertNullPointer(java.lang.String path, java.lang.String expectedPath, java.lang.String expectedSignature)
           
private  void assertValueAndPointer(java.lang.String path, java.lang.Object expectedValue, java.lang.String expectedPath, java.lang.String expectedSignature)
           
private  void assertValueAndPointer(java.lang.String path, java.lang.Object expectedValue, java.lang.String expectedPath, java.lang.String expectedSignature, java.lang.String expectedValueSignature)
           
static void main(java.lang.String[] args)
           
private  java.lang.String pointerSignature(org.apache.commons.jxpath.Pointer pointer)
          Since we need to test the internal Signature of a pointer, we will get a signature which will contain a single character per pointer in the chain, representing that pointer's type.
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
 void testDoPredicateIndex()
           
 void testDoPredicateName()
           
 void testDoPredicatesStandard()
           
 void testDoStepNoPredicatesPropertyOwner()
           
 void testDoStepNoPredicatesStandard()
           
 void testDoStepPredicatesPropertyOwner()
           
 void testDoStepPredicatesStandard()
           
 void testInterpretExpressionPath()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bean

private TestBeanWithNode bean

context

private org.apache.commons.jxpath.JXPathContext context
Constructor Detail

SimplePathInterpreterTest

public SimplePathInterpreterTest(java.lang.String name)
Constructor for SimplePathInterpreterTest.

Method Detail

main

public static void main(java.lang.String[] args)

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


testDoStepNoPredicatesPropertyOwner

public void testDoStepNoPredicatesPropertyOwner()

testDoStepNoPredicatesStandard

public void testDoStepNoPredicatesStandard()

testDoStepPredicatesPropertyOwner

public void testDoStepPredicatesPropertyOwner()

testDoStepPredicatesStandard

public void testDoStepPredicatesStandard()

testDoPredicateName

public void testDoPredicateName()

testDoPredicatesStandard

public void testDoPredicatesStandard()

testDoPredicateIndex

public void testDoPredicateIndex()

testInterpretExpressionPath

public void testInterpretExpressionPath()

assertValueAndPointer

private void assertValueAndPointer(java.lang.String path,
                                   java.lang.Object expectedValue,
                                   java.lang.String expectedPath,
                                   java.lang.String expectedSignature)

assertValueAndPointer

private void assertValueAndPointer(java.lang.String path,
                                   java.lang.Object expectedValue,
                                   java.lang.String expectedPath,
                                   java.lang.String expectedSignature,
                                   java.lang.String expectedValueSignature)

assertNullPointer

private void assertNullPointer(java.lang.String path,
                               java.lang.String expectedPath,
                               java.lang.String expectedSignature)

pointerSignature

private java.lang.String pointerSignature(org.apache.commons.jxpath.Pointer pointer)
Since we need to test the internal Signature of a pointer, we will get a signature which will contain a single character per pointer in the chain, representing that pointer's type.