You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dready <th...@gmail.com> on 2010/08/18 16:00:25 UTC

How do you write unit tests for annotation based validation?

Hi!

I am using annotation based validation in my actions and tried to
write a unittest for it, with no success.

I found several links, one looked very promising but is not working
with 2.1.8.1. (NullPointerException):
http://bloodredsun.blog.com/2009/10/21/unit-testing-struts2-actions-with-annotation-based-validation/
http://fromthesource.liquidorange.net/?p=16

Is there anyone who can tell me what i have to do?

I am using Struts 2.1.8.1. with Spring 2.5.6 and tried jUnit 4.

best regards,

Thomas

-- 
"Power corrupts. Power failure corrupts absolutely"

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