Home »
MCQs »
JUnit MCQs
Invocation of the method ____ will only happen once before all tests are run
12. Invocation of the method ____ will only happen once before all tests are run.
- @AfterClass
- @Before
- @BeforeClass
- @After
Answer: C) @BeforeClass
Explanation:
Invocation of the method @BeforeClass will only happen once, before all tests are run.