com.madgag.hamcrest
Class IsMap<K,V>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<Map<K,V>>
          extended by com.madgag.hamcrest.IsMap<K,V>
All Implemented Interfaces:
org.hamcrest.Matcher<Map<K,V>>, org.hamcrest.SelfDescribing

public class IsMap<K,V>
extends org.hamcrest.TypeSafeMatcher<Map<K,V>>


Method Summary
 IsMap<K,V> and(K key, org.hamcrest.Matcher<V> valueConstraint)
           
 IsMap<K,V> and(K key, V value)
           
 IsMap<K,V> and(org.hamcrest.Matcher<K> keyConstraint, org.hamcrest.Matcher<V> valueConstraint)
           
static
<K,V> IsMap<K,V>
containing(K key, V value)
           
static
<K,V> IsMap<K,V>
containing(org.hamcrest.Matcher<K> keyConstraint, org.hamcrest.Matcher<V> valueConstraint)
           
static
<K,V> IsMap<K,V>
containingOnly(K key, org.hamcrest.Matcher<V> valueConstraint)
           
static
<K,V> IsMap<K,V>
containingOnly(K key, V value)
           
static
<K,V> IsMap<K,V>
containingOnly(org.hamcrest.Matcher<K> keyConstraint, org.hamcrest.Matcher<V> valueConstraint)
           
 void describeTo(org.hamcrest.Description description)
           
 boolean matchesSafely(Map<K,V> map)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, 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
 

Method Detail

containing

public static <K,V> IsMap<K,V> containing(org.hamcrest.Matcher<K> keyConstraint,
                                          org.hamcrest.Matcher<V> valueConstraint)

containing

public static <K,V> IsMap<K,V> containing(K key,
                                          V value)

containingOnly

public static <K,V> IsMap<K,V> containingOnly(K key,
                                              org.hamcrest.Matcher<V> valueConstraint)

containingOnly

public static <K,V> IsMap<K,V> containingOnly(org.hamcrest.Matcher<K> keyConstraint,
                                              org.hamcrest.Matcher<V> valueConstraint)

containingOnly

public static <K,V> IsMap<K,V> containingOnly(K key,
                                              V value)

and

public IsMap<K,V> and(org.hamcrest.Matcher<K> keyConstraint,
                      org.hamcrest.Matcher<V> valueConstraint)

and

public IsMap<K,V> and(K key,
                      org.hamcrest.Matcher<V> valueConstraint)

and

public IsMap<K,V> and(K key,
                      V value)

matchesSafely

public boolean matchesSafely(Map<K,V> map)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<Map<K,V>>

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2011. All Rights Reserved.