InterviewSolution
Saved Bookmarks
| 1. |
Which of the below is an incorrect annotation with respect to JUnits?(a) @Test(b) @BeforeClass(c) @Junit(d) @AfterEach |
|
Answer» The correct option is (c) @Junit Best explanation: @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. |
|