Hi Mark,

In article <[EMAIL PROTECTED]>,
Sat, 19 Jun 2004 00:58:12 -0700,
Mark Slater <[EMAIL PROTECTED]> wrote: 
mark> I'm sure this is documented all over the place, but for the life of me, 
mark> I couldn't find it after looking for the two hours or so.  I'm using 
mark> the maven plugin to run my cactus tests. In the setUp() method, I'd 
mark> like to load a couple of image files to use in the testing. Where in 
mark> the directory structure would I put those files so the are accessible 
mark> with getClass().getResource("image.jpg") inside the setUp() method?

There is no standard place, I believe.
Only thing to consider is that the location of the resource can be found
by the classloader of the test class.
See Also: java.lang.Class#getResource(String) javadoc.

How about under WEB-INF/classes?
You may combine test data set in a jar file, test-resources.jar for example,
and put that as WEB-INF/lib/test-resources.jar.

Regards,
----
Kazuhito SUGURI
mailto:[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to