1.

The JUnit hasItem() function is a _____________(a) Hamcrest Matcher(b) Instance Function(c) JUnitMatcher(d) MatcherThis question was addressed to me during an interview.My question is from Need for Unit Tests topic in division Software Testing Principles of JUnit

Answer»

The correct CHOICE is (C) JUnitMatcher

For EXPLANATION: hasItem() is a useful matcher with for USE with the assertThat METHOD.



Discussion

No Comment Found

Related InterviewSolutions