
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() );
}
}
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.