On 6/9/07, Session Mwamufiya <[EMAIL PROTECTED]> wrote:
I'm running the test from "WEB-INF/scr/Test" where both "HelloWorldTest.java" and "HelloWorldTest.class" are located.
If you changed the package for the action, you need to do the same for the test. Do they both have "package helloworld;" at the top? Both .class files need to be in a directory structure matching the package-- in this case, in a directory named "helloworld". The directory just above 'helloworld' needs to be on the classpath. In your case that's probably WEB-INF/classes. The test works fine here with JUnit 4.3.1. Here is the classpath that Maven Surefire constructed: [DEBUG] Classpath: [C:\cygwin\home\wsmoak\hello-world\target\classes C:\cygwin\home\wsmoak\hello-world\target\test-classes C:\java\m2-repository\opensymphony\xwork\2.0.1\xwork-2.0.1.jar C:\java\m2-repository\org\apache\struts\struts2-core\2.0.6\struts2-core-2.0.6.jar C:\java\m2-repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar c:\Program Files\Java\jdk1.5.0_10\jre\..\lib\tools.jar C:\java\m2-repository\opensymphony\ognl\2.6.11\ognl-2.6.11.jar C:\java\m2-repository\junit\junit\4.3.1\junit-4.3.1.jar C:\java\m2-repository\freemarker\freemarker\2.3.8\freemarker-2.3.8.jar] -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]