package org.jaxen.javabean;

import junit.framework.TestCase;

public class DocumentNavigatorTest
    extends TestCase
{

    public void testNothing()
        throws Exception
    {
        JavaBeanXPath xpath = new JavaBeanXPath( "brother[position()<4]/name" );

        Person bob = new Person( "bob", 30 );

        bob.addBrother( new Person( "billy", 34 ) );
        bob.addBrother( new Person( "seth", 29 ) );
        bob.addBrother( new Person( "dave", 32 ) );
        bob.addBrother( new Person( "jim", 29 ) );
        bob.addBrother( new Person( "larry", 42 ) );
        bob.addBrother( new Person( "ted", 22 ) );

        System.err.println( xpath.evaluate( bob ) );
    }

}

@@ -54,16 +54,69 @@
 estCase;
+%0Aimport org.jaxen.saxpath.helpers.XPathReaderFactory;
 %0A%0Apublic
@@ -168,16 +168,171 @@
 Case%0A%7B%0A%0A
+    protected void setUp() throws Exception%0A    %7B%0A        System.setProperty( XPathReaderFactory.DRIVER_PROPERTY,%0A                            %22%22 );%0A    %7D%0A%0A
     publ

Set property in case it has been set wrong previously