-
Type:
Task
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5
-
Fix Version/s: 2.5.1
-
Component/s: jackrabbit-jcr-tests, JCR 2.0, test
-
Labels:None
The last two lines in the ShareableNodeTest.testGetPath() method incorrectly assume the location of the testRootNode is '/testroot', even though the rest of the tests do not make this assumption and it's possible to configure the tests to use a different location for the testRootNode. These three lines:
// verify paths of nodes b1/b2 in shared set
assertEquals("/testroot/a1/b1", b1.getPath());
assertEquals("/testroot/a2/b2", b2.getPath());
should instead be:
// verify paths of nodes b1/b2 in shared set
String testRootNodePath = testRootNode.getPath();
assertEquals(testRootNodePath + "/a1/b1", b1.getPath());
assertEquals(testRootNodePath + "/a2/b2", b2.getPath());
I marked as critical because the TCK test prevents other implementations from correctly proving compatibility.