| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <E> Matcher | containsInRelativeOrder(E...
the items that must be contained within items provided by an examined items)Iterable in the same relative orderCreates a matcher for assertThat(Arrays.asList("a", "b", "c", "d", "e"), containsInRelativeOrder("b", "d"))
|
| public static <E> Matcher | containsInRelativeOrder(Matcher<? super E>...
the matchers that must be satisfied by the items provided by an examined itemMatchers)Iterable in the same relative orderCreates a matcher for |
| public static <E> Matcher | containsInRelativeOrder(List<Matcher<? super E>>
a list of matchers, each of which must be satisfied by the items provided by
an examined itemMatchers)Iterable in the same relative orderCreates a matcher for |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| protected boolean | matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription)
Implements abstract org. |
| matchers | back to summary |
|---|---|
| private final List<Matcher<? super E>> matchers | |
| IsIterableContainingInRelativeOrder | back to summary |
|---|---|
| public IsIterableContainingInRelativeOrder(List<Matcher<? super E>> matchers) | |
| containsInRelativeOrder | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(Arrays.asList("a", "b", "c", "d", "e"), containsInRelativeOrder("b", "d"))
| |
| containsInRelativeOrder | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(Arrays.asList("a", "b", "c", "d", "e"), containsInRelativeOrder(equalTo("b"), equalTo("d")))
| |
| containsInRelativeOrder | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(Arrays.asList("a", "b", "c", "d", "e"), contains(Arrays.asList(equalTo("b"), equalTo("d"))))
| |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| matchesSafely | back to summary |
|---|---|
| protected boolean matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |
| Modifier and Type | Field and Description |
|---|---|
| private F | |
| public final List | |
| private final Description | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void |
| lastMatchedItem | back to summary |
|---|---|
| private F lastMatchedItem | |
| matchers | back to summary |
|---|---|
| public final List<Matcher<? super F>> matchers | |
| mismatchDescription | back to summary |
|---|---|
| private final Description mismatchDescription | |
| nextMatchIx | back to summary |
|---|---|
| private int nextMatchIx | |
| MatchSeriesInRelativeOrder | back to summary |
|---|---|
| public MatchSeriesInRelativeOrder(List<Matcher<? super F>> matchers, Description mismatchDescription) | |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() | |
| processItems | back to summary |
|---|---|
| public void processItems(Iterable<? extends F> iterable) | |