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