
Hi Sir
I am a beginner to JUnit. I have created these three test classes - CounterTest,MyClassTest & PetTest. I want to run these all with a Test Suite. Please mention code with your answer.
Best regards

Hi friend
Given below the code according to the test classes you mention :
package roseindia.junit;
import org.junit.runner.RunWith;
import org.junit.runners.suite.SuiteClasses;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@SuiteClasses( { CounterTest.class, MyClassTest.class, PetTest.class })
public class AllTests {
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.