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] Created: (JCR-499) TCK: NamespaceRegistryTest#testRegisterNamespace doesn't remove node in new namespace
Date Wed, 26 Jul 2006 23:11:14 GMT
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


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