File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 JavaScript Promises Essentials this week in the JavaScript 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: demo for struts 2.0 & Junit 4