How to create Test Suite in JUnit
Submitted by harrydev on Tue, 01/21/2014 - 13:41What is Test Suite?
A Test Suite is a grouping unit test cases together and running it. In JUnit, both @RunWith and @Suite annotations are used to run the suite test.
We will show you how to create and run a Suite. We will create two test classes TestOne and TestTwo.
First create a program with class "TestOne" as below:
import org.junit.Test;
public class TestOne {
@Test
public void testcaseOne(){
System.out.println("Hello im in test case one");
}
}
Now Create another program with class "TestTwo" as below: