This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes demo for struts 2.0 & Junit 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "demo for struts 2.0 & Junit 4" Watch "demo for struts 2.0 & Junit 4" New topic
Author

demo for struts 2.0 & Junit 4

kedu par
Greenhorn

Joined: Nov 21, 2007
Posts: 11
How we can test action class(Struts2.0) with Junit4.
If any one has demo for the same .pl.send the code.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Action:Test:If you want to test deeper functionality, take a look at the framework's existing test code to see how (or some of the Struts 2 books). There are helper classes that assist in doing this as you'll see when you look at the existing tests.
kedu par
Greenhorn

Joined: Nov 21, 2007
Posts: 11
Thanks!
But whether we required any extra jar file?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I don't believe so.
kedu par
Greenhorn

Joined: Nov 21, 2007
Posts: 11
Can we use struts- Junit plugin ? How?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Sure, although I don't know anything about it for Struts 2.0.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: demo for struts 2.0 & Junit 4
 
Similar Threads
Problem with JERSEY and JAX-RS
first whack at JSP not working
* Welcome Jevgeni Kabanov and Toomas R�mer