| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <E> Matcher | |
| public static <E> Matcher | |
| public static <E> Matcher | contains(Matcher<? super E>...
the matchers that must be satisfied by the items provided by an examined itemMatchers)IterableCreates a matcher for |
| public static <E> Matcher | contains(List<Matcher<? super E>>
a list of matchers, each of which must be satisfied by the corresponding item provided by
an examined itemMatchers)IterableCreates 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 | |
| IsIterableContainingInOrder | back to summary |
|---|---|
| public IsIterableContainingInOrder(List<Matcher<? super E>> matchers) | |
| contains | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(Arrays.asList("foo", "bar"), contains("foo", "bar"))
| |
| contains | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(Arrays.asList("foo"), contains(equalTo("foo")))
| |
| contains | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(Arrays.asList("foo", "bar"), contains(equalTo("foo"), equalTo("bar")))
| |
| contains | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(Arrays.asList("foo", "bar"), contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))
| |
| 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 final List | |
| private final Description | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | |
| private boolean | |
| public boolean |
| matchers | back to summary |
|---|---|
| private final List<Matcher<? super F>> matchers | |
| mismatchDescription | back to summary |
|---|---|
| private final Description mismatchDescription | |
| nextMatchIx | back to summary |
|---|---|
| private int nextMatchIx | |
| MatchSeries | back to summary |
|---|---|
| public MatchSeries(List<Matcher<? super F>> matchers, Description mismatchDescription) | |
| describeMismatch | back to summary |
|---|---|
| private void describeMismatch(Matcher<? super F> matcher, F item) | |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() | |
| isMatched | back to summary |
|---|---|
| private boolean isMatched(F item) | |
| matches | back to summary |
|---|---|
| public boolean matches(F item) | |