Question
What does the fail() method do in JUnit?
Answer: Option A
Was this answer helpful ?
The method throws an assertion error unconditionally. This might be helpful to show an incomplete test (maybe still being worked upon) or to ensure that an expected exception is thrown.
Was this answer helpful ?
Submit Solution