Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 30490 invoked from network); 5 Jun 2009 12:51:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jun 2009 12:51:35 -0000 Received: (qmail 11479 invoked by uid 500); 5 Jun 2009 12:51:47 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 11428 invoked by uid 500); 5 Jun 2009 12:51:46 -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 11420 invoked by uid 99); 5 Jun 2009 12:51:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 12:51:46 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of tiago@espinhas.net does not designate 209.85.219.211 as permitted sender) Received: from [209.85.219.211] (HELO mail-ew0-f211.google.com) (209.85.219.211) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 12:51:37 +0000 Received: by ewy7 with SMTP id 7so2009052ewy.7 for ; Fri, 05 Jun 2009 05:51:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.210.143.9 with SMTP id q9mr3229111ebd.31.1244206276490; Fri, 05 Jun 2009 05:51:16 -0700 (PDT) In-Reply-To: References: <4A290C42.7060502@sbcglobal.net> Date: Fri, 5 Jun 2009 13:51:16 +0100 Message-ID: Subject: Re: Issue with JUnit - 0 tests? From: Tiago Espinha To: derby-dev@db.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Thanks to Kathey, we were able to find out the problem and the solution for the issue. It turns out that the test has the following check on the suite() method: if (!Derby.hasServer() || !Locale.getDefault().getLanguage().equals("en") || JDBC.vmSupportsJSR169()) Since the locale on my machine is probably set to Portuguese, it wouldn't run the test at all. The solution was to override the locale with the following properties: -Duser.language=3D2-char-language-code -Duser.region=3D2-char-country-code Set it to any anglophone country, with the respective 'en' language code and it all starts working. Tiago On Fri, Jun 5, 2009 at 1:19 PM, Tiago Espinha wrote: > > Well, they both are there (and I also checked that the jars were in their= directory), along with the rest of all the jars. I have been using the sam= e set of commands to set the classpath so this shouldn't be it... > > On Fri, Jun 5, 2009 at 1:14 PM, Kathey Marsden wrote: >> >> Tiago Espinha wrote: >>> >>> Hello everyone, >>> >>> Has anyone ever faced an issue when running JUnit tests where no fixtur= es from a test are ran? >>> >> I think if derbynet.jar and derbyclient.jar are not in the classpath, th= e network tests will be skipped. =A0Could this be it? >> >>> Here's what I get exactly: >>> ------------------8<------------------------- >>> C:\cygwin\home\Tiago\Derby\Testing\TempTest>java junit.textui.TestRunne= r org.apa >>> che.derbyTesting.functionTests.tests.derbynet.NetworkServerControlClien= tCommandT >>> est >>> >>> Time: 0 >>> >>> OK (0 tests) >>> -------------------8<-------------------------- >>> >>> The odd part is that this test was running (and failing) yesterday, and= now it acts as if there are no fixtures in the file. I'm looking at the fi= le in Eclipse, and there is the testPing() fixture in it. I've also done an= t clobber, all and buildjars more than once with no luck. What's even more = odd, is that with the very same patch (the latest on DERBY-4217), if I try = to run this test on an Ubuntu Virtual Machine, it does run the one fixture = in it. >>> >>> Does anyone have any idea of what's going on here? >>> >>> Best Regards, >>> Tiago >> >