1.

When is the tearDown() method called in JUnit?(a) After all the tests have run(b) At the beginning of every test case(c) After each test case has run(d) At the beginning of the first test caseThis question was addressed to me in exam.My question is from Running Parameterized Tests topic in chapter Exploring Core JUnit of JUnit

Answer»

The correct OPTION is (C) After each TEST case has run

The best I can explain: The tearDown() METHOD is called after the execution of every @Test method.



Discussion

No Comment Found

Related InterviewSolutions