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