Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4BB31C2A8 for ; Wed, 30 May 2012 16:00:28 +0000 (UTC) Received: (qmail 9510 invoked by uid 500); 30 May 2012 16:00:25 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 9458 invoked by uid 500); 30 May 2012 16:00:25 -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 9365 invoked by uid 99); 30 May 2012 16:00:25 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 16:00:25 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 6A3EC1402B8 for ; Wed, 30 May 2012 16:00:25 +0000 (UTC) Date: Wed, 30 May 2012 16:00:25 +0000 (UTC) From: "Thomas Mueller (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <2012391233.16794.1338393625438.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (JCR-3324) TCK: GetQueryTest.testGetQuery() unnecessarily uses a same name sibling MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Thomas Mueller created JCR-3324: ----------------------------------- Summary: TCK: GetQueryTest.testGetQuery() unnecessarily uses a same name sibling Key: JCR-3324 URL: https://issues.apache.org/jira/browse/JCR-3324 Project: Jackrabbit Content Repository Issue Type: Improvement Components: jackrabbit-jcr-tests Reporter: Thomas Mueller Assignee: Thomas Mueller The test case GetQueryTest.testGetQuery() first creates a node testRoot/node1: testRootNode.addNode(nodeName1, testNodeType); and then creates another node with the same name below: Node stored = q.storeAsNode(testRoot + "/" + nodeName1); This results in a same name sibling, which is later removed: stored.remove(); But the test case isn't about same name siblings, and could store the node under a different name instead: Node stored = q.storeAsNode(testRoot + "/storedQuery"); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira