File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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?
Form Variables vs Session Variables
Good book for struts
Domain Object as Strtus Action form.
How to Download XML file from database?
JUnit and mocking objects in Struts Action class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014