You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2006/08/02 14:20:14 UTC
[jira] Resolved: (JCR-499) TCK:
NamespaceRegistryTest#testRegisterNamespace doesn't remove node in new
namespace
[ http://issues.apache.org/jira/browse/JCR-499?page=all ]
Marcel Reutegger resolved JCR-499.
----------------------------------
Fix Version/s: 1.1
Resolution: Fixed
Fixed as suggested in revision: 427962
Thank you for reporting this issue.
> 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