You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by mr...@apache.org on 2005/09/23 18:38:32 UTC
svn commit: r291168 -
/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
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(":", "")));
}
/**