StrutsSpringTestCase extends StrutsTestCase which extends another class that
depends on JUnit 3 not JUnit 4.  

So you cannot use JUnit 4 annotations and the SpringJUnit4ClassRunner.

You may find this blog article helpful:

http://www.brucephillips.name/blog/index.cfm/2009/12/2/Using-JUnit-To-Test-A-Struts-2-Action-Class-In-An-Application-That-Also-Uses-Spring

Hopefully in a future version of Struts 2, StrutsTestCase will be updated to
use JUnit 4. 

--
View this message in context: 
http://struts.1045723.n5.nabble.com/NullPointerException-Using-StrutsSpringTestCase-tp3534567p3549698.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to