Anytime I try to run a JUnit test in Eclipse (after running the war target) I get:
java.lang.ClassNotFoundException: <package>.<test-name> Do I have to add the war file to my class path? By the way, I am right clicking the unit test in Package Explorer and selecting Run As..->JUnit Test. Thank you, Andrew J. Leer Matt Raible-3 wrote: > > If you run "ant war" and refresh your project in Eclipse, you should be > able > to run your tests. The only thing you might need to do is run "ant > db-load" > every now and then. > > Matt > > On 12/5/06, maskkkk <[EMAIL PROTECTED]> wrote: >> >> >> Is it possible to run my Appfuse JUnit tests in Eclipse? >> (so that I can debug them) >> >> I've been trying to do so, and I get an error about: >> >> >> JUnit wrote: >> > >> > org.springframework.beans.factory.BeanInitializationException: Could >> not >> > load properties; nested exception is java.io.FileNotFoundException: >> > classpath resource [mail.properties] cannot be opened because it does >> not >> > exist. >> > >> >> I think I read somewhere that this can be fixed by setting something up >> in >> the setUp() method of the junit test, is this true? >> >> Thanks again, >> Andrew J. Leer >> -- >> View this message in context: >> http://www.nabble.com/JUnit-Tests-in-Eclipse--tf2761983s2369.html#a7700334 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > -- View this message in context: http://www.nabble.com/JUnit-Tests-in-Eclipse--tf2761983s2369.html#a7701091 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
