Sail E0 Webinar
Question
The _________ rule can be used to test both exception type and message.
Options:
A .  Expected
B .  ExpectedException
C .  CatchException
D .  Catch
Answer: Option B


Since JUnit 4.7, ExpectedException can be used to test both exception type and message.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers