JUnit Questions and Answers – Need for Unit Tests
This set of JUnit Quiz focuses on “Need for Unit Tests”. 1. The JUnit hasItem() function is a _____________ a) Hamcrest Matcher b) Instance Function c) JUnitMatcher d) Matcher 2. 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.hasItem 3. Class JUnitMatchers extends _______________ a) java.lang.Object b) … Read more