public final class MapSubject.UsingCorrespondence<A,E> extends Object
Map
 under test) are compared to expected values using a Correspondence. The expected values
 are of type E. Call methods on this object to actually execute the check.
 Note that keys will always be compared with regular object equality (Object.equals(java.lang.Object)).
| Modifier and Type | Method and Description | 
|---|---|
Ordered | 
containsAtLeast(Object k0,
               E v0,
               Object... rest)
Fails if the map does not contain at least the given set of keys mapping to values that
 correspond to the given values. 
 | 
<K,V extends E> | 
containsAtLeastEntriesIn(Map<K,V> expectedMap)
Fails if the map does not contain at least the keys in the given map, mapping to values that
 correspond to the values of the given map. 
 | 
void | 
containsEntry(Object expectedKey,
             E expectedValue)
Fails if the map does not contain an entry with the given key and a value that corresponds to
 the given value. 
 | 
Ordered | 
containsExactly(Object k0,
               E v0,
               Object... rest)
Fails if the map does not contain exactly the given set of keys mapping to values that
 correspond to the given values. 
 | 
<K,V extends E> | 
containsExactlyEntriesIn(Map<K,V> expectedMap)
Fails if the map does not contain exactly the keys in the given map, mapping to values that
 correspond to the values of the given map. 
 | 
void | 
doesNotContainEntry(Object excludedKey,
                   E excludedValue)
Fails if the map contains an entry with the given key and a value that corresponds to the
 given value. 
 | 
public void containsEntry(@NullableDecl
                          Object expectedKey,
                          @NullableDecl
                          E expectedValue)
public void doesNotContainEntry(@NullableDecl
                                Object excludedKey,
                                @NullableDecl
                                E excludedValue)
@CanIgnoreReturnValue public Ordered containsExactly(@NullableDecl Object k0, @NullableDecl E v0, Object... rest)
The values must all be of type E, and a ClassCastException will be thrown
 if any other type is encountered.
 
Warning: the use of varargs means that we cannot guarantee an equal number of key/value pairs at compile time. Please make sure you provide varargs in key/value pairs!
@CanIgnoreReturnValue public Ordered containsAtLeast(@NullableDecl Object k0, @NullableDecl E v0, Object... rest)
The values must all be of type E, and a ClassCastException will be thrown
 if any other type is encountered.
 
Warning: the use of varargs means that we cannot guarantee an equal number of key/value pairs at compile time. Please make sure you provide varargs in key/value pairs!
@CanIgnoreReturnValue public <K,V extends E> Ordered containsExactlyEntriesIn(Map<K,V> expectedMap)
Copyright © 2019. All rights reserved.