1.

With the ‘expected’ argument, one cannot ___________(a) Test a method(b) Test for exception type(c) Test the value of the message in the exception(d) Test for specific exceptionI have been asked this question in exam.This interesting question is from Testing Exception Handling in section Mastering JUnit of JUnit

Answer»

Right CHOICE is (C) TEST the value of the message in the exception

The explanation: The ‘EXPECTED’ argument cannot check the value of the message passed in the exception.



Discussion

No Comment Found

Related InterviewSolutions