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 proposition.
Note that keys will always be compared with regular object equality (Object.equals(java.lang.Object)
).
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
Copyright © 2016. All rights reserved.