Class IterableMatcher
java.lang.Object
org.dmfs.jems2.hamcrest.matchers.iterable.IterableMatcher
Factory methods for
Iterable matchers.-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> org.hamcrest.Matcher<Iterable<? extends E>>iteratesTo(E... items) Matcherthat matches when the actualIterablehas equal to elements in same order as the provided items.static <E> org.hamcrest.Matcher<Iterable<? extends E>>iteratesTo(Iterable<? extends org.hamcrest.Matcher<? super E>> itemMatchers) Matcherthat matches when the provided matchers match with the actualIterables elements in the same order.static <E> org.hamcrest.Matcher<Iterable<? extends E>>iteratesTo(org.hamcrest.Matcher<? super E>... itemMatchers) Matcherthat matches when the provided item matchers match the actualIterables elements in the same order.
-
Method Details
-
iteratesTo
public static <E> org.hamcrest.Matcher<Iterable<? extends E>> iteratesTo(Iterable<? extends org.hamcrest.Matcher<? super E>> itemMatchers) Matcherthat matches when the provided matchers match with the actualIterables elements in the same order. -
iteratesTo
Matcherthat matches when the actualIterablehas equal to elements in same order as the provided items. -
iteratesTo
@SafeVarargs public static <E> org.hamcrest.Matcher<Iterable<? extends E>> iteratesTo(org.hamcrest.Matcher<? super E>... itemMatchers) Matcherthat matches when the provided item matchers match the actualIterables elements in the same order.
-