You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by David Caruana <da...@caruana.co.uk> on 2005/09/14 19:50:32 UTC
Bug in NodeReadMethodsTest?
The testGetIndex() test searches for a node with same name siblings
somewhere in the repository. It seems it will only find that node, if:
1) The node is the one identified by the test config value
javax.jcr.tck.NodeReadMethodsTest.testroot
2) Its first child is one of the same name siblings
It's possible that people may be mislead in that they believe the test
has passed, but in fact, their same name siblings were never found.
The method locateNodeWithSameNameSiblings(Node node) within
NodeReadMethodsTest.java looks like the culprit:
1011 } else {
1012 Node returnedNode = locateNodeWithSameNameSiblings(n);
1013 if (n != null) {
1014 return returnedNode;
1015 }
1016 }
line 1013 should be if (returnedNode != null) {
Changing to the above has allowed me to execute the test without messing
around with my test data.
I assume this is the place to report this kind of problem.
Regards,
David Caruana
www.alfresco.org