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