• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic