-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joe,
Joe Yuen wrote: > Can anyone give me any advice on a good tool to use for unit testing > struts action classes. I am currently using struts 1.2.9 with spring > 1.2.9 and hibernate. I have looked into StrutsTestCase but cannot get it > to work. I get the following error: [snip] > [junit] received error 404 : Invalid path was requested Are you initializing Struts before you attempt to call Action.execute? Or, are you just doing "new MyAction().execute(...)" ? If you don't initialize Struts, your unit tests will never work. Struts 2 has what appears to be a much more flexible action architecture, which makes unit testing much easier. If you are near the beginning of your development cycle, you should consider upgrading in order to facilitate your unit testing. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGfBDl9CaO5/Lv0PARAhBFAKDCLWEJs5LpQSbHn+P3WMvgl0ZeegCfTy6A 5+2LWBpu3C/MQEep4OpsvOM= =TeVa -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]