1.

Which Hamcrest matcher is just like the && operator?(a) Is(b) Anything(c) sameInstance(d) allOfThe question was posed to me in an interview.The question is from Hamcrest Matchers in portion Mastering JUnit of JUnit

Answer»

The CORRECT option is (d) allOf

The explanation: CHECKS to SEE if all contained matchers MATCH (just LIKE the && operator).



Discussion

No Comment Found

Related InterviewSolutions