public class IsIterableContainingInOrder<E> extends TypeSafeDiagnosingMatcher<Iterable<E>>
Constructor and Description |
---|
IsIterableContainingInOrder(List<Matcher<? super E>> matchers) |
Modifier and Type | Method and Description |
---|---|
static <E> Matcher<Iterable<E>> |
contains(E... items) |
static <E> Matcher<Iterable<E>> |
contains(List<Matcher<? super E>> contents) |
static <E> Matcher<Iterable<E>> |
contains(Matcher<? super E>... items) |
static <E> Matcher<Iterable<E>> |
contains(Matcher<E> item) |
void |
describeTo(Description description)
Generates a description of the object.
|
protected boolean |
matchesSafely(Iterable<E> iterable,
Description mismatchDescription)
Subclasses should implement this.
|
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
protected boolean matchesSafely(Iterable<E> iterable, Description mismatchDescription)
TypeSafeDiagnosingMatcher
matchesSafely
in class TypeSafeDiagnosingMatcher<Iterable<E>>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.Copyright © 2016. All rights reserved.