public class IsMapContainingValue<V> extends TypeSafeMatcher<java.util.Map<?,V>>
| Constructor and Description |
|---|
IsMapContainingValue(Matcher<? super V> valueMatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatchSafely(java.util.Map<?,V> map,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
static <V> Matcher<? super java.util.Map<?,V>> |
hasValue(Matcher<? super V> valueMatcher) |
static <V> Matcher<? super java.util.Map<?,V>> |
hasValue(V value) |
boolean |
matchesSafely(java.util.Map<?,V> item)
Subclasses should implement this.
|
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic boolean matchesSafely(java.util.Map<?,V> item)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<java.util.Map<?,V>>public void describeMismatchSafely(java.util.Map<?,V> map, Description mismatchDescription)
TypeSafeMatcherdescribeMismatchSafely in class TypeSafeMatcher<java.util.Map<?,V>>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.public static <V> Matcher<? super java.util.Map<?,V>> hasValue(V value)