public class VisitsList<T> extends BaseMatcher<Iterator<T>>
Modifier and Type | Class and Description |
---|---|
static class |
VisitsList.Supplier<T>
Builds and supplies a
VisitsList matcher for a specified source Iterator. |
Constructor and Description |
---|
VisitsList(Iterator<T> expected)
Creates a new VisitsList instance.
|
VisitsList(Iterator<T> expected,
Function<T,Matcher<T>> memberMatcherSupplier)
Creates a new VisitsList instance that adds an additional match condition: each member of a
matched sequence must satisfy the Matcher returned by the given supplier for its
counterpart in the given expected sequence.
|
Modifier and Type | Method and Description |
---|---|
void |
describeMismatch(Object actual,
Description description) |
void |
describeTo(Description description) |
boolean |
matches(Object actual) |
String |
toString() |
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull
public VisitsList(Iterator<T> expected, Function<T,Matcher<T>> memberMatcherSupplier)
public boolean matches(Object actual)
public void describeTo(Description description)
public void describeMismatch(Object actual, Description description)
describeMismatch
in interface Matcher<Iterator<T>>
describeMismatch
in class BaseMatcher<Iterator<T>>
public String toString()
toString
in class BaseMatcher<Iterator<T>>
Copyright © 2022 The Cornutum Project. All rights reserved.