Home »
MCQs »
JUnit MCQs
Invocation of a method after all tests have been completed is specified by the ____ annotation
16. Invocation of a method after all tests have been completed is specified by the ____ annotation.
- @AfterClass
- @After
- @BeforeClass
- @Test(timeout=1000)
Answer: A) @AfterClass
Explanation:
Invocation of a method after all tests have been completed is specified by the @AfterClass annotation