1.

The instanceOf matcher is equivalent to ________(a) isCompatibleType(b) isCompatible(c) isInstance(d) isSameI got this question in an internship interview.My question is based upon Hamcrest Matchers topic in division Mastering JUnit of JUnit

Answer» RIGHT choice is (a) isCompatibleType

Easiest explanation: Match whether objects are of compatible type (are instances of ONE ANOTHER).


Discussion

No Comment Found

Related InterviewSolutions