-
Which of the below is an incorrect annotation with respect to JUnits?
-
- @AfterEach
- @Test
- @BeforeClass
- @Junit
- None of these
Correct Option: D
@Test is used to annotate method under test, @BeforeEach and @AfterEach are called before and after each method respectively. @BeforeClass and @AfterClass are called only once for each class.