This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Struts and the fly likes can we write test classes(test cases)for action class that extend DispatchAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can we write test classes(test cases)for action class that extend DispatchAction" Watch "can we write test classes(test cases)for action class that extend DispatchAction" New topic
Author

can we write test classes(test cases)for action class that extend DispatchAction

swatione chowdary
Greenhorn

Joined: Apr 07, 2005
Posts: 27
hi my dear guys.

can we write test classes(test cases)for action classes in struts that extend org.apache.struts.actions.DispatchAction .


if we could write , can any body tell the process of how to write test class for it.


help needed urjently , can u help me as fast as possible.



swati.
Periakaruppan Thiagarajan
Ranch Hand

Joined: Jul 26, 2005
Posts: 65
This link might help you to start writing testcases for structs application using dispatch action.
http://www.laliluna.de/junit-testing-struts-tutorial.html
swatione chowdary
Greenhorn

Joined: Apr 07, 2005
Posts: 27
hi with the link u have given is useful in testing the classes which extend org.apache.struts.action.Action only .

to test the classes which extend org.apache.struts.actions.DispatchAction
i need help that whether we can test or not , if we can test how we can test and the process.

the thing is action classes that extend org.apache.struts.action.Action we can test them with MockStrutsTestCase and CactusStrutsTestCase .

but how we can write test classes for action classes that extend org.apache.struts.actions.DispatchAction



can u tell the process.

help needed is urgent.


swati.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: can we write test classes(test cases)for action class that extend DispatchAction
 
It's not a secret anymore!