commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r604237 - /commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/model/XMLModelTestCase.java
Date Fri, 14 Dec 2007 17:25:54 GMT
Author: mbenson
Date: Fri Dec 14 09:25:53 2007
New Revision: 604237

URL: http://svn.apache.org/viewvc?rev=604237&view=rev
Log:
add a node test

Modified:
    commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/model/XMLModelTestCase.java

Modified: commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/model/XMLModelTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/model/XMLModelTestCase.java?rev=604237&r1=604236&r2=604237&view=diff
==============================================================================
--- commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/model/XMLModelTestCase.java
(original)
+++ commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/model/XMLModelTestCase.java
Fri Dec 14 09:25:53 2007
@@ -833,4 +833,9 @@
         assertXPathValue(context, "/vendor[1]/contact[1] | /vendor[1]/contact[4]", "John");
         assertXPathValue(context, "/vendor[1]/contact[4] | /vendor[1]/contact[1]", "John");
     }
+
+    public void testNodes() {
+        Pointer pointer = context.getPointer("/vendor[1]/contact[1]");
+        assertFalse(pointer.getNode().equals(pointer.getValue()));
+    }
 }



Mime
View raw message