1.

What does the assertTrue(“message”,A) do?(a) Asserts that the condition A is true(b) Asserts that “message” = A(c) Asserts that A contains “message”(d) Asserts that the condition A is falseThe question was asked in an interview.Asked question is from Running Parameterized Tests in section Exploring Core JUnit of JUnit

Answer» RIGHT ANSWER is (a) ASSERTS that the CONDITION A is true

Explanation: assertTrue requires A to be a boolean expression and the “MESSAGE” is displayed.


Discussion

No Comment Found

Related InterviewSolutions