• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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.
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic