Package net.morimekta.testing.matchers
Class AllItemsMatch<T>
- java.lang.Object
-
- org.hamcrest.BaseMatcher<java.util.Collection<T>>
-
- net.morimekta.testing.matchers.AllItemsMatch<T>
-
- All Implemented Interfaces:
org.hamcrest.Matcher<java.util.Collection<T>>
,org.hamcrest.SelfDescribing
public class AllItemsMatch<T> extends org.hamcrest.BaseMatcher<java.util.Collection<T>>
All items in a collection matches the given matcher. This is equivalent with a loop over all items in the collection and callingassertThat(item, matcher)
-
-
Constructor Summary
Constructors Constructor Description AllItemsMatch(org.hamcrest.Matcher<T> matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
describeMismatch(java.lang.Object item, org.hamcrest.Description description)
void
describeTo(org.hamcrest.Description description)
boolean
matches(java.lang.Object item)
-
-
-
Constructor Detail
-
AllItemsMatch
public AllItemsMatch(org.hamcrest.Matcher<T> matcher)
-
-