
What is the Application of @Test Annotation in JUnit ?

The Test annotation tells JUnit that the public void method to which it is attached can be run as a test case :
public class Example {
@Test
public void method() {
org.junit.Assert.assertTrue( new ArrayList().isEmpty() );
}
}