Sail E0 Webinar
Question
When is the tearDown() method called in JUnit?
Options:
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 case
Answer: Option C


The tearDown() method is called after the execution of every @Test method.



Was this answer helpful ?

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers