1.

The package to which hasItem() function belongs is _______________(a) org.junit.JUnitMatchers.hasItem(b) org.junit.hasItem(c) org.junit.Junit.hasItem(d) org.junit.hamcrest.hasItemThe question was posed to me during an interview for a job.This interesting question is from Need for Unit Tests in section Software Testing Principles of JUnit

Answer» RIGHT ANSWER is (a) org.junit.JUnitMatchers.hasItem

To ELABORATE: The hasItem() is a JUnitMatcher.


Discussion

No Comment Found

Related InterviewSolutions