Yes, I forgot to mention that. Good point Douglas. 

If you also have same files in resources ant testResources order is important 
as I mentioned earlier. 
We have two database.properties files one for main and one for test and this 
demands correct order in classpath or else your Eclipse junittests will fail.

-Ronny 

-----Opprinnelig melding-----
Fra: Arnaud Bailly [mailto:[EMAIL PROTECTED] 
Sendt: 4. oktober 2006 09:53
Til: Maven Users List
Emne: Re: Maven, Eclipse, & Junit

Douglas Ferguson <[EMAIL PROTECTED]> writes:

> When running unit tests from eclipse I can't resolve my test resources 
> because they are placed in test-classes.

Just add src/test/resources to your tests classpath:
In eclipse :
  Run.. > Classpath > Advanced > Add folder 

regards
--
OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr.
\web> http://www.oqube.com


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


!DSPAM:452368a2239351804284693!


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

Reply via email to