public class IsMapContaining<K,V> extends TypeSafeMatcher<Map<? extends K,? extends V>>
Constructor and Description |
---|
IsMapContaining(Matcher<? super K> keyMatcher,
Matcher<? super V> valueMatcher) |
Modifier and Type | Method and Description |
---|---|
void |
describeMismatchSafely(Map<? extends K,? extends V> map,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
static <K,V> Matcher<Map<? extends K,? extends V>> |
hasEntry(K key,
V value) |
static <K,V> Matcher<Map<? extends K,? extends V>> |
hasEntry(Matcher<? super K> keyMatcher,
Matcher<? super V> valueMatcher) |
boolean |
matchesSafely(Map<? extends K,? extends V> map)
Subclasses should implement this.
|
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public boolean matchesSafely(Map<? extends K,? extends V> map)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<Map<? extends K,? extends V>>
public void describeMismatchSafely(Map<? extends K,? extends V> map, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<Map<? extends K,? extends V>>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.public static <K,V> Matcher<Map<? extends K,? extends V>> hasEntry(Matcher<? super K> keyMatcher, Matcher<? super V> valueMatcher)
Copyright © 2016. All rights reserved.