Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 31210 invoked from network); 21 Mar 2006 23:10:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Mar 2006 23:10:17 -0000 Received: (qmail 74036 invoked by uid 500); 21 Mar 2006 23:10:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 74005 invoked by uid 500); 21 Mar 2006 23:10:15 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 73996 invoked by uid 99); 21 Mar 2006 23:10:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 15:10:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 15:10:14 -0800 Received: from phys-d3-ha21sca-2 ([129.145.155.165]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id k2LN9sQl014200 for ; Tue, 21 Mar 2006 16:09:54 -0700 (MST) Received: from conversion-daemon.ha21sca-mail1.sfbay.sun.com by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IWI00C012WXP9@ha21sca-mail1.sfbay.sun.com> (original mail from Richard.Hillegas@Sun.COM) for derby-dev@db.apache.org; Tue, 21 Mar 2006 15:10:54 -0800 (PST) Received: from [129.150.20.227] (vpn-129-150-20-227.SFBay.Sun.COM [129.150.20.227]) by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IWI004RJ326QW@ha21sca-mail1.sfbay.sun.com> for derby-dev@db.apache.org; Tue, 21 Mar 2006 15:10:54 -0800 (PST) Date: Tue, 21 Mar 2006 15:10:02 -0800 From: Rick Hillegas Subject: Re: svn commit: r387640 - in /db/derby/code/trunk/java/testing: ./ org/apache/derbyTesting/functionTests/master/ org/apache/derbyTesting/functionTests/suites/ org/apache/derbyTesting/functionTests/tests/jdbc4/ In-reply-to: <44207DF0.9030200@sun.com> To: derby-dev@db.apache.org Message-id: <442087CA.8080609@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) References: <20060321221059.2399.qmail@minotaur.apache.org> <44207DF0.9030200@sun.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi David, A couple responses follow. Cheers-Rick David W. Van Couvering wrote: > Hi, Rick, this looks great, thanks for this work! > > A couple of questions: > > - Is there any reason these weren't written as JUnit tests? I suspect > the answer is (a) they were originally written before the JUnit > framework was in place and (b) it was too much work to migrate as part > of this patch. Most of these tests are, deliberately, canon-less assertion-based tests, which, as you note, would be natural fits for JUnit. You're right about why these weren't coded under JUnit: the framework wasn't in place yet. It would be good to migrate these to JUnit, but that wasn't my itch here. I just wanted to fix the framework problem so that people could add new tests that follow our usual conventions. > > - I noticed in a couple of places you directly call > System.getProperty("framework"). Shouldn't these be in privileged > blocks? Or is this only an issue with JUnit tests because they > require JUnit to be able to access properties unless you use a > privileged block? You're right, this will be a problem when these tests are converted to JUnit. > > I'm just curious -- how did you get ij.startJBMS() to work? I got > "null" whenever I tried to do that in the JDBC4 tests, as did others... Dunno. It just works for me. If you've got a moment, could you test-drive these changes in your environment to verify I haven't broken the jdbc4 tests for you? For the record, I'm running with jdk1.6 build 76. > > Thanks, > > David >