A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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
Web applications. It builds on
and works great for
testing Struts applications.
Here's the link:
[ January 30, 2006: Message edited by: Merrill Higginson ]
rocket mass heater
subject: How to easily test a Struts Action?
How to Download XML file from database?
JUnit and mocking objects in Struts Action class
Domain Object as Strtus Action form.
Form Variables vs Session Variables
Good book for struts
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014