jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Pitfield (JIRA)" <j...@apache.org>
Subject [jira] Closed: (JCR-499) TCK: NamespaceRegistryTest#testRegisterNamespace doesn't remove node in new namespace
Date Fri, 04 Aug 2006 19:55:16 GMT
     [ http://issues.apache.org/jira/browse/JCR-499?page=all ]

David Pitfield closed JCR-499.
------------------------------


> TCK: NamespaceRegistryTest#testRegisterNamespace doesn't remove node in new namespace
> -------------------------------------------------------------------------------------
>
>                 Key: JCR-499
>                 URL: http://issues.apache.org/jira/browse/JCR-499
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: test
>            Reporter: David Pitfield
>             Fix For: 1.1
>
>
> The test creates a node in the new namespace, but doesn't remove it.  This prevents tearDown
from unregistering the namespace.
> Proposal: the test should remove the new node before returning.
> --- NamespaceRegistryTest.java  (revision 422074)
> +++ NamespaceRegistryTest.java  (working copy)
> @@ -138,6 +138,10 @@
>   
>          testRootNode.addNode(namespacePrefix + ":root");
>          testRootNode.save();
> +
> +        // Need to remove it here, otherwise teardown can't unregister the NS.
> +        testRootNode.getNode(namespacePrefix + ":root").remove();
> +        testRootNode.save();
>      }

-- 
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