A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to easily test a Struts Action?
Joined: Jan 18, 2006
Jan 30, 2006 20:20:00
Now I'm working with
, and I want to
my action class, but I need to mock a HttpRequest object, a HttpResponse object, a ActionForm object, and a ActionMapping object, it's too difficult for me to test. Is there anything more easy?
author and iconoclast
Joined: Jul 08, 2003
Jan 30, 2006 20:42:00
I dunno... let's go over to the
and ask over there (I'll move this thread for you.)
[Jess in Action]
Joined: Jan 30, 2006
Jan 30, 2006 21:05:00
What do you mean by mock? Why not just download
and use it to test your action?
Joined: Feb 15, 2005
Jan 30, 2006 23:36:00
The Apache Cactus is a test framework made specifically for testing Web applications. It builds on
and works great for unit testing Struts applications.
Here's the link:
[ January 30, 2006: Message edited by: Merrill Higginson ]
I agree. Here's the link:
subject: How to easily test a Struts Action?
Form Variables vs Session Variables
Domain Object as Strtus Action form.
JUnit and mocking objects in Struts Action class
Good book for struts
How to Download XML file from database?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015