Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 19057 invoked from network); 14 May 2003 16:27:50 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 14 May 2003 16:27:50 -0000 Received: (qmail 28712 invoked by uid 97); 14 May 2003 16:29:57 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 28705 invoked from network); 14 May 2003 16:29:56 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 14 May 2003 16:29:56 -0000 Received: (qmail 18801 invoked by uid 500); 14 May 2003 16:27:47 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 18790 invoked from network); 14 May 2003 16:27:47 -0000 Received: from web41508.mail.yahoo.com (66.218.93.91) by daedalus.apache.org with SMTP; 14 May 2003 16:27:47 -0000 Message-ID: <20030514162750.60272.qmail@web41508.mail.yahoo.com> Received: from [67.161.74.172] by web41508.mail.yahoo.com via HTTP; Wed, 14 May 2003 09:27:50 PDT Date: Wed, 14 May 2003 09:27:50 -0700 (PDT) From: Mohan Kishore Subject: RE: [math] stupid question about test input files To: Jakarta Commons Developers List In-Reply-To: <245A7290F0E0D311BF6E009027E7908B07204501@atlanta.seagullsw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I would recommend Craig's approach - esp. if the usage is localized - makes sense to keep the data with classes using them. However, If many classes from different packages are referring to the data file, may be a better idea to centralize the file... --- Gary Gregory wrote: > You could create a "resources" directory at the same level as "java" and > access files there using the class loader (getSystemResource()). This avoids > mixing .java files and test fixture files. You need to put the resources dir > on the class path to run the unit tests of course. Not a big deal to do from > ant though. > > Gary > > -----Original Message----- > From: Phil Steitz [mailto:phil@steitz.com] > Sent: Wednesday, May 14, 2003 8:11 AM > To: Jakarta Commons Developers List > Subject: [math] stupid question about test input files > > I am bundling up my RandomData, EmpiricalDistribution and ValueServer > classes for submission and the last two can take file input data. The > test cases need to read from a test data file. Can I assume that this > file will be available to the test cases with no path spec? > > Phil > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org