Changeset 6 for trunk/testsrc/ws/fugue88/jpath
- Timestamp:
- 09/21/2005 10:00:46 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/testsrc/ws/fugue88/jpath/PathTest.java (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/testsrc/ws/fugue88/jpath/PathTest.java
r2 r6 3 3 * 4 4 * $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 * 5 9 * Revision 1.1 2005/08/03 00:35:29 dsowen 6 10 * Initial commit. … … 20 24 public void testQuote() 21 25 { 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")); 24 28 } 25 29 26 30 public void testIdentifier() throws Exception 27 31 { 28 Path path = new Path("/test");32 Path path = new SimplePathParser().parse("/test"); 29 33 Iterator i = path.iterator(); 30 34 PathPart part = (PathPart)i.next(); … … 36 40 public void testNumberSelector() throws Exception 37 41 { 38 Path path = new Path("[0]");42 Path path = new SimplePathParser().parse("[0]"); 39 43 Iterator i = path.iterator(); 40 44 PathPart part = (PathPart)i.next(); … … 46 50 public void testStringSelectorSimple() throws Exception 47 51 { 48 Path path = new Path("['test']");52 Path path = new SimplePathParser().parse("['test']"); 49 53 Iterator i = path.iterator(); 50 54 PathPart part = (PathPart)i.next(); … … 56 60 public void testStringSelectorQuoted() throws Exception 57 61 { 58 Path path = new Path("['te\\'st']");62 Path path = new SimplePathParser().parse("['te\\'st']"); 59 63 Iterator i = path.iterator(); 60 64 PathPart part = (PathPart)i.next(); … … 63 67 assertFalse(i.hasNext()); 64 68 } 69 65 70 public void testCompound1() throws Exception 66 71 { 67 Path path = new Path("/a/b");72 Path path = new SimplePathParser().parse("/a/b"); 68 73 Iterator i = path.iterator(); 69 74 PathPart part = (PathPart)i.next();
Note: See TracChangeset
for help on using the changeset viewer.
