Re: Resources and JUnit

2007-08-14 Thread Ray Wenderlich
Wow you are right - there was an error in my test itself, lol! Sorry for the confusion, I thought I had everything set up right :] On 8/14/07, Lalor, Brian <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Ray Wenderlich [mailto:[EMAIL PROTECTED] > >

Resources and JUnit

2007-08-13 Thread Ray Wenderlich
Hi all, I am testing a class that is using a .properties file that I have placed in src\main\resources. I am loading it via: InputStream is = getClass().getClassLoader().getResourceAsStream("add.properties"); The .properties file gets copied to target\classes\add.properties, and when I create a