Java Mailing List Archive

http://www.junlu.com/

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

Recommendations for Struts unit testing

Christopher Loschen

2007-01-22

Replies:

Hi all,



I've got some new bug fixes for our application, which is based on
Struts 1.1 (yes, I know we need to upgrade, but not this week...). I'd
like to set up some unit tests so that we can make sure this bug doesn't
crop up again.



We've got quite a few unit tests set up with JUnit, but nothing that
really handles the web element of this. What do you recommend for this
sort of thing?



So far, I'm looking at HttpUnit and StrutsTestCase. Both look like they
could work, but the former doesn't really seem to know much about struts
per se, and the latter apparently requires Struts 1.2. Are those my best
(or only) choices?



Thanks for your help!



Chris Loschen

Axeda Corporation

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