k hall wrote:
> 
> I really like Struts 2 but has anyone had any success in testing Struts
> 2's action validation logic?
> 

I also really like Struts2 and have been suffering the same irritation with
testing validation logic.

Having spent a while stepping through the code, it appears that the problem
stems from the fact that there isn't a configured object factory for the
test, which results in a NullPointerException. I've solved this using the
following code :

                ObjectFactory.setObjectFactory( new ObjectFactory() );

Hope this helps.

Ben
-- 
View this message in context: 
http://www.nabble.com/Struts-2-and-Validation-Testing-tf3451623.html#a10666757
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to