Question: A TestSuite is a simple way of running one program that, in turn, runs all test cases at one time. Create a TestSuite class titled

A TestSuite is a simple way of running one program that, in turn, runs all test cases at one time. Create a TestSuite class titled LabTestSuite under package test. You have to provide names of test classes you would like to include in the test suite using the annotation @SuiteClasses (Test1.class, Test2.class, Test3.class). Below is a test suite template. This test suite demonstrates the basic functionality of the suite() method, which is what you add each of the test cases to the suite in. This should all be generated for you by Eclipse if you use the eclipse wizard to create the Test Suite as explained above. Do not forget to change the class name to LabTestSuite. import org.junit.runners.Suite.SuiteClasses; import org.junit.runners.Suite; import org.junit.runner.RunWith; @RunWith(Suite.class) @SuiteClasses({ BankAccountTest.class }) public class LabTestSuite { } Execute the test cases by right clicking on LabTestSuite, Select Run ? JUnitTestCase. Make sure the tests run successfully.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!