public class MapSubject extends Subject<MapSubject,Map<?,?>>
Map
subjects.failureStrategy
Modifier and Type | Method and Description |
---|---|
void |
containsEntry(Object key,
Object value)
Fails if the map does not contain the given entry.
|
void |
containsKey(Object key)
Fails if the map does not contain the given key.
|
void |
doesNotContainEntry(Object key,
Object value)
Fails if the map contains the given entry.
|
void |
doesNotContainKey(Object key)
Fails if the map contains the given key.
|
void |
hasSize(int expectedSize)
Fails if the map does not have the given size.
|
void |
isEmpty()
Fails if the map is not empty.
|
void |
isEqualTo(Object other)
Fails if the subject is not equal to the given object.
|
void |
isNotEmpty()
Fails if the map is empty.
|
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hashCode, internalCustomName, isAnyOf, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named
public void isEqualTo(@Nullable Object other)
isEqualTo
in class Subject<MapSubject,Map<?,?>>
public void isEmpty()
public void isNotEmpty()
public final void hasSize(int expectedSize)
public void containsKey(@Nullable Object key)
public void doesNotContainKey(@Nullable Object key)
public void containsEntry(@Nullable Object key, @Nullable Object value)
Copyright © 2015. All rights reserved.