Home »
MCQs »
JUnit MCQs
____ annotation indicates that the method must be called before every test
13. ____ annotation indicates that the method must be called before every test.
- @AfterClass
- @Before
- @BeforeClass
- @Test(timeout=1000)
Answer: B) @Before
Explanation:
@Before annotation indicates that the method must be called before every test.