org.hamcrest.collection
Class IsMapContainingValue<V>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<java.util.Map<?,V>>
org.hamcrest.collection.IsMapContainingValue<V>
- All Implemented Interfaces:
- org.hamcrest.Matcher<java.util.Map<?,V>>, org.hamcrest.SelfDescribing
public class IsMapContainingValue<V>
- extends org.hamcrest.TypeSafeMatcher<java.util.Map<?,V>>
|
Method Summary |
void |
describeMismatchSafely(java.util.Map<?,V> map,
org.hamcrest.Description mismatchDescription)
|
void |
describeTo(org.hamcrest.Description description)
|
static
<V> org.hamcrest.Matcher<? super java.util.Map<?,V>> |
|
hasValue(org.hamcrest.Matcher<? super V> valueMatcher)
|
static
<V> org.hamcrest.Matcher<? super java.util.Map<?,V>> |
|
hasValue(V value)
|
boolean |
matchesSafely(java.util.Map<?,V> item)
|
| Methods inherited from class org.hamcrest.TypeSafeMatcher |
describeMismatch, matches |
| Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IsMapContainingValue
public IsMapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher)
matchesSafely
public boolean matchesSafely(java.util.Map<?,V> item)
- Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<java.util.Map<?,V>>
describeMismatchSafely
public void describeMismatchSafely(java.util.Map<?,V> map,
org.hamcrest.Description mismatchDescription)
- Overrides:
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<java.util.Map<?,V>>
describeTo
public void describeTo(org.hamcrest.Description description)
hasValue
public static <V> org.hamcrest.Matcher<? super java.util.Map<?,V>> hasValue(V value)
hasValue
public static <V> org.hamcrest.Matcher<? super java.util.Map<?,V>> hasValue(org.hamcrest.Matcher<? super V> valueMatcher)
Copyright © 2010. All Rights Reserved.