Following are the Junit Annotations:
- @Test: Annotation lets the system know that the method annotated as @Test is a test method. There can be multiple test methods in a single test script.
- @Before: Method annotated as @Before lets the system know that this method shall be executed every time before each of the test method.
- @After: Method annotated as @After lets the system know that this method shall be executed every time after each of the test method.
- @BeforeClass: Method annotated as @BeforeClass lets the system know that this method shall be executed once before any of the test method.
- @AfterClass: Method annotated as @AfterClass lets the system know that this method shall be executed once after any of the test method.
- @Ignore: Method annotated as @Ignore lets the system know that this method shall not be executed.