Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 23576 invoked from network); 4 Aug 2006 19:57:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Aug 2006 19:57:58 -0000 Received: (qmail 60884 invoked by uid 500); 4 Aug 2006 19:57:55 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 60864 invoked by uid 500); 4 Aug 2006 19:57:55 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 60855 invoked by uid 99); 4 Aug 2006 19:57:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 12:57:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 12:57:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 56D06410023 for ; Fri, 4 Aug 2006 19:55:16 +0000 (GMT) Message-ID: <4138982.1154721316353.JavaMail.jira@brutus> Date: Fri, 4 Aug 2006 12:55:16 -0700 (PDT) From: "David Pitfield (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Closed: (JCR-499) TCK: NamespaceRegistryTest#testRegisterNamespace doesn't remove node in new namespace In-Reply-To: <15885967.1153955474001.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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