CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.

Sponsored Links

Interview Questions
Our Services

INTERVIEW QUESTIONS J2EE STRUTS DETAILS
Question :
Does Struts include its own unit tests?
Category Struts Interview Questions
Rating (4.7) By 21 users
Added on 8/31/2014
Views 188
Rate it!


Answers:

Source: CoolInterview.com

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.
Source: CoolInterview.com



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 & Answers

    User Options
    India News Network

    Latest 20 Questions
    Journal records the transactions of the firm in a: a) Analytical manner b) Chronological manner c) Periodical manner d) Summarized manner
    Capital of business is Rs. 75,000 and liability is Rs. 25,000 then total assets of business would be: a) Rs. 1,00,000 b) Rs. 15,000 c) Rs. 75,000 d) Rs. 50,000
    In which of the following cases, accounting estimates are needed? a) Employee benefit obligations b) Impairment of losses c) Inventory obsolescence d) All of the above
    What is the difference between a regular bitmap and a nine-patch image?
    What is portable wi-fi hotspot?
    What is a Sticky Intent?
    What are the core components under the Android application architecture?
    When is the best time to kill a foreground activity?
    What is a Fragment?
    What data types are supported by AIDL?
    What is AIDL?
    When does ANR occur?
    ___________ appear as a footnote below the balance sheet. a) Fictitious Assets b) Contingent Liabilities c) Current Liabilities d) Current Assets
    What is the importance of Default Resources?
    Contingent liability if becomes probable then it is _________ a) Provided in the books of A/c b) Provided in Director's report c) Shown in notes to accounts d) None of these
    Enumerate the steps in creating a bounded service through AIDL.
    What is the AndroidManifest.xml?
    What role does Dalvik play in Android development?
    Income tax demand, disputed by a company is ______ a) Contingent Liability b) Current Liability c) Long term Liability d) None of these
    How can the ANR be prevented?



    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

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

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




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



    Cache = 0.710938 Seconds