Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-499

TCK: NamespaceRegistryTest#testRegisterNamespace doesn't remove node in new namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1
    • test
    • None

    Description

      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();
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            dpitfiel David Pitfield
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: