Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 51121 invoked from network); 3 Oct 2005 08:02:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Oct 2005 08:02:52 -0000 Received: (qmail 14088 invoked by uid 500); 3 Oct 2005 08:02:43 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 13928 invoked by uid 99); 3 Oct 2005 08:02:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2005 01:02:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 03 Oct 2005 01:02:43 -0700 Received: (qmail invoked by alias); 03 Oct 2005 08:02:16 -0000 Received: from bsl-rtr.day.com (EHLO [10.0.0.55]) [212.249.34.130] by mail.gmx.net (mp014) with SMTP; 03 Oct 2005 10:02:16 +0200 X-Authenticated: #894343 Message-ID: <4340E587.5050805@gmx.net> Date: Mon, 03 Oct 2005 10:02:15 +0200 From: Marcel Reutegger User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: Suggestion for TCK test SaveTest.testSave References: <5F266C8676DF1241BED644C210ABFD1901F53B3E@usilms28.ca.com> In-Reply-To: <5F266C8676DF1241BED644C210ABFD1901F53B3E@usilms28.ca.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Doug, makes sense to me to change the test case. Though the spec is imo not 100% clear about this. But I don't see a reason why an implementation shouldn't be allowed to use a subtype of nt:query. changed as suggested, svn revision: 293273 thanks for reporting this issue. regards marcel McComsey, Doug wrote: > I am failing this TCK test: > org.apache.jackrabbit.test.api.query.SaveTest.testSave > > One of the checks is to insure that the query node is of type nt:query: > > assertEquals("Query node is not of type nt:query", > ntQuery, queryNode.getPrimaryNodeType().getName()); > > I would like to suggest that it be: > > assertTrue("Query node is not of type nt:query", > queryNode.isNodeType(ntQuery)); > > I fail this test because my node definition is not nt:query but instead has nt:query as a supertype. I would pass the suggested test. > > Doug McComsey > Computer Associates > doug.mccomsey@ca.com > > > >