T- the type of object expected in the matched List
public class ListWithAllOfMatcher<T> extends ListMatcher<T>
matchersmatch against at least one item in a given List.
|Constructor and Description|
Construct a matcher that will return true if all the given
|Modifier and Type||Method and Description|
Describes the type of collection expected.
Evaluates the matcher for argument
describeTo, failedMatcherMessage, getLastSeparator, getMatchers, matches, matchRemainder, reportFailed
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
public ListWithAllOfMatcher(org.hamcrest.Matcher<T>... matchers)
matchersmatch against at least one item in any given List.
matchers- The matchers that must match against at least one item in the list.
public boolean matchesList(List<?> items)
item. The item has been verified to be a list, but the exact type of contents of a list cannot be verified, due to Erasure of Generic Types.
protected void describeCollectionType(org.hamcrest.Description description)
Copyright © 2012. All Rights Reserved.