jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-583) TCK: NodeReadMethodsTest.testGetName fails with NPE if 'testroot' has no child node
Date Thu, 30 Nov 2006 15:45:25 GMT
     [ http://issues.apache.org/jira/browse/JCR-583?page=all ]

Marcel Reutegger resolved JCR-583.
----------------------------------

    Resolution: Fixed

Fixed in revision: 480975

Thanks a lot for the patch.

> TCK: NodeReadMethodsTest.testGetName fails with NPE if  'testroot' has no child node
> ------------------------------------------------------------------------------------
>
>                 Key: JCR-583
>                 URL: http://issues.apache.org/jira/browse/JCR-583
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: JCR TCK
>    Affects Versions: 1.0
>            Reporter: angela
>            Priority: Trivial
>         Attachments: NodeReadMethodsTest.patch
>
>
> The 'testGetName' does not assert, that  the childnode field has been populated during
setup.
> if  for whatever reason  the test data don't provide a single childnode below the test
root, this test will fail with nullpointer
> exception.
> i would like to suggest to use the same assertion as in testGetPath and throw a NotExecutableException
in case of
> missing child node.
> patch attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message