Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 39370 invoked from network); 9 Feb 2001 17:32:52 -0000 Received: from cmailg1.svr.pol.co.uk (195.92.195.171) by h31.sny.collab.net with SMTP; 9 Feb 2001 17:32:52 -0000 Received: from [195.92.67.23] (helo=mail18.svr.pol.co.uk) by cmailg1.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 14RHN7-0003zF-00; Fri, 09 Feb 2001 17:30:13 +0000 Received: from modem-32.virginia.dialup.pol.co.uk ([62.137.97.32] helo=hydrogen) by mail18.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 14RHNI-0005sw-00; Fri, 09 Feb 2001 17:30:24 +0000 Received: from paulr by hydrogen with local (Exim 3.20 #1 (Debian)) id 14RHN7-0001rV-00; Fri, 09 Feb 2001 17:30:13 +0000 Date: Fri, 9 Feb 2001 17:30:13 +0000 From: Paul Russell To: cocoon-dev@xml.apache.org, stuart.roebuck@adolos.co.uk Subject: Re: [C2] Unit testing. Message-ID: <20010209173013.G630@hydrogen.internal.luminas.co.uk> Reply-To: Paul Russell References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from stuart.roebuck@adolos.co.uk on Fri, Feb 09, 2001 at 05:13:07PM +0000 Sender: Paul Russell X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N * Stuart Roebuck (stuart.roebuck@adolos.co.uk) wrote : > So you have: > AClass.java > AClassTest.java (JUnit tests) > MyClass.java > MyClassTest.java (JUnit tests) > Test/ > InputTestFile1.txt > InputTestFile2.xml > ResultExampleFile1.txt > > I'm not saying that this pattern is any better than any other, I just > thought it would be worth having a pattern to work to. Mm-hmm. The only thing that concerns me about doing it that way is that it may get a little confusing because it'll double the number of classes in each package. Another option would be to put them in a separate package hieracy which mirrors the primary one, or to have a 'test' subpackage below each package. Thoughts? Paul -- Paul Russell Email: paul@luminas.co.uk Technical Director Tel: +44 (0)20 8553 6622 Luminas Internet Applications Fax: +44 (0)870 28 47489 This is not an official statement or order. Web: www.luminas.co.uk