Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Struts 2 and Validation Testing

k hall

2007-03-22

Replies:


I really like Struts 2 but has anyone had any success in testing Struts 2's
action validation logic?

http://struts.apache.org/2.x/docs/how-do-i-unit-test-my-actions-validation-logic.html

I'd like to test the validation messages I receive but get an exception
where the objectFactory is null. I've tried with putting in my own
validators.xml, but it gets hung up on the ObjectFactory and I really can't
figure out how to correct that from a Unit Test.

Any ideas to fix this Struts 2 gurus?

Thanks.

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.