jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r291168 - /incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
Date Fri, 23 Sep 2005 16:38:32 GMT
Author: mreutegg
Date: Fri Sep 23 09:38:24 2005
New Revision: 291168

URL: http://svn.apache.org/viewcvs?rev=291168&view=rev
Log:
JCR-156: Review test cases and cross check with 1.0 specification
- NodeReadMethodsTest contains test cases that construct invalid item names

Modified:
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java?rev=291168&r1=291167&r2=291168&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
(original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
Fri Sep 23 09:38:24 2005
@@ -497,7 +497,7 @@
 
         // test that an empty NodeIterator is returned
         // when the pattern is not matching any child node
-        String pattern0 = notExistingPropertyName.toString();
+        String pattern0 = notExistingPropertyName.toString().replaceAll(":", "");
         NodeIterator properties0 = node.getNodes(pattern0);
         try {
             properties0.nextNode();
@@ -778,7 +778,7 @@
 
         assertFalse("hasNode(String relPath) returns true although " +
                 "node at relPath is not existing",
-                node.hasNode(notExistingNodeName.toString()));
+                node.hasNode(notExistingNodeName.toString().replaceAll(":", "")));
     }
 
     /**
@@ -830,7 +830,7 @@
 
         assertFalse("node.hasProperty(\"relPath\") returns true " +
                 "although property at relPath is not existing",
-                node.hasProperty(notExistingPropertyName.toString()));
+                node.hasProperty(notExistingPropertyName.toString().replaceAll(":", "")));
     }
 
     /**



Mime
View raw message