public class VisitsMembers<T> extends BaseMatcher<Iterator<T>>
equals
-matching counterpart in the given expected collection.Modifier and Type | Class and Description |
---|---|
static class |
VisitsMembers.Supplier<T>
Builds and supplies a
VisitsMembers matcher for a specified source Iterator. |
Constructor and Description |
---|
VisitsMembers(Iterator<T> expected)
Creates a new VisitsMembers instance.
|
VisitsMembers(Iterator<T> expected,
Function<T,Matcher<T>> memberMatcherSupplier)
Creates a new VisitsMembers instance that adds an additional match condition: each member of a
matched collection must satisfy the Matcher returned by the given supplier for its
equals -matching
counterpart in the given expected collection. |
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 VisitsMembers(Iterator<T> expected, Function<T,Matcher<T>> memberMatcherSupplier)
equals
-matching
counterpart in the given expected collection.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.