Home / CSE MCQs / JUnit MCQs :: Discussion

Discussion :: JUnit MCQs

  1. When is the tearDown() method called in JUnit?
  2. 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

    View Answer

    Workspace

    Answer : Option C

    Explanation :

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


Be The First To Comment