commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohan Kishore <mohankish...@yahoo.com>
Subject RE: [math] stupid question about test input files
Date Wed, 14 May 2003 16:27:50 GMT
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 <ggregory@seagullsw.com> 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


Mime
View raw message