CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS J2EE STRUTS DETAILS
    Question :
    Does Struts include its own unit tests?
    Category Struts Interview Questions
    Rating (1.8) By 152 users
    Added on 8/31/2009
    Views 1488
    Rate it!
    Answers:

    Struts currently has two testing environments, to reflect the fact that some things can be tested statically, and some really need to be done in the environment of a running servlet container.
    For static unit tests, we use the JUnit framework. The sources for these tests are in the "src/test" hierarchy in the source repository, and are executed via the "test.junit" target in the top-level build.xml file. Such tests are focused on the low-level functionality of individual methods, are particularly suitable for the static methods in the org.apache.struts.util utility classes. In the test hierarchy, there are also some "mock object" classes (in the org.apache.struts.mock package) so that you can package up things that look like servlet API and Struts API objects to pass in as arguments to such tests.
    Another valuable tool is Struts TestCase which provides a useful harness for Action classes that can be used with JUnit or Cactus.



    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    When do I need "struts.jar" on my classpath?
    View Answer
    How do I install Struts?
    View Answer
    Where can I get a copy of Struts?
    View Answer
    Do I have to credit Struts on my own website?
    View Answer
    Why is it called Struts?
    View Answer
    Who wrote Struts?
    View Answer
    How does Struts work?
    View Answer
    Why do we need Struts?
    View Answer
    Give the Details of XML files used in Validator Framework?
    View Answer
    What is Struts Validator Framework?
    View Answer
    What is ActionForm?
    View Answer
    Write code of any Action Class?
    View Answer
    Write code of any Action Class?
    View Answer
    What is Action Class?
    View Answer
    How you will make available any Message Resources Definitions file to the Struts Framework Environment?
    View Answer
    What is ActionServlet?
    View Answer
    How you will enable front-end validation based on the xml in validation.xml?
    View Answer
    Is Struts efficient?
    View Answer
    What helpers in the form of JSP pages are provided in Struts framework?
    View Answer
    What configuration files are used in Struts?
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Struts Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0.03125 Seconds