Ignore:
Timestamp:
09/21/2005 10:00:46 PM (21 years ago)
Author:
dsowen
Message:

Split out the access stuff into accesslib.
New Creator interface off-loads object creation to user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testsrc/ws/fugue88/jpath/PathTest.java

    r2 r6  
    33 *
    44 * $Log$
     5 * Revision 1.2  2005/09/21 22:00:46  dsowen
     6 * Split out the access stuff into accesslib.
     7 * New Creator interface off-loads object creation to user.
     8 *
    59 * Revision 1.1  2005/08/03 00:35:29  dsowen
    610 * Initial commit.
     
    2024        public void testQuote()
    2125        {
    22                 assertEquals("test", Path.quote("test"));
    23                 assertEquals("te\\'st", Path.quote("te'st"));
     26                assertEquals("test", PathParser.quote("test"));
     27                assertEquals("te\\'st", PathParser.quote("te'st"));
    2428        }
    2529
    2630        public void testIdentifier() throws Exception
    2731        {
    28                 Path path = new Path("/test");
     32                Path path = new SimplePathParser().parse("/test");
    2933                Iterator i = path.iterator();
    3034                PathPart part = (PathPart)i.next();
     
    3640        public void testNumberSelector() throws Exception
    3741        {
    38                 Path path = new Path("[0]");
     42                Path path = new SimplePathParser().parse("[0]");
    3943                Iterator i = path.iterator();
    4044                PathPart part = (PathPart)i.next();
     
    4650        public void testStringSelectorSimple() throws Exception
    4751        {
    48                 Path path = new Path("['test']");
     52                Path path = new SimplePathParser().parse("['test']");
    4953                Iterator i = path.iterator();
    5054                PathPart part = (PathPart)i.next();
     
    5660        public void testStringSelectorQuoted() throws Exception
    5761        {
    58                 Path path = new Path("['te\\'st']");
     62                Path path = new SimplePathParser().parse("['te\\'st']");
    5963                Iterator i = path.iterator();
    6064                PathPart part = (PathPart)i.next();
     
    6367                assertFalse(i.hasNext());
    6468        }
     69
    6570        public void testCompound1() throws Exception
    6671        {
    67                 Path path = new Path("/a/b");
     72                Path path = new SimplePathParser().parse("/a/b");
    6873                Iterator i = path.iterator();
    6974                PathPart part = (PathPart)i.next();
Note: See TracChangeset for help on using the changeset viewer.