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_, toString
public boolean matchesSafely(Map<?,V> item)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<Map<?,V>>
public void describeMismatchSafely(Map<?,V> map, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<Map<?,V>>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.Copyright © 2016. All rights reserved.