jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall Hauch (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCR-3370) TCK test for shareable node paths assumes work area
Date Tue, 03 Jul 2012 00:45:57 GMT
Randall Hauch created JCR-3370:

             Summary: TCK test for shareable node paths assumes work area
                 Key: JCR-3370
                 URL: https://issues.apache.org/jira/browse/JCR-3370
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-jcr-tests, JCR 2.0, test
    Affects Versions: 2.5
            Reporter: Randall Hauch
            Priority: Critical
             Fix For: 2.5.1, 2.6

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

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message