Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to write TestSuite in Junit 4

I have to migrate some code from Junit 3 to Junit 4. I am using a TestSuite in Junit 3 and am not really sure how to implement it in Junit 4. This is the code in Junit 3:

import junit.framework.TestSuite;

public static Test suite() {
        TestSuite suite = new TestSuite("ABC tests");
        suite.addTest(new ConnectTest("01_Test1"));
        return suite;
    }

Please let me know what I have to write for this code in Junit 4.

Comments