Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
swatione chowdary
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic