Modifier and Type | Class and Description |
---|---|
static interface |
MapSubject.WithValue<V>
Deprecated.
Use
containsEntry(Object, Object) instead. |
Subject.HasField
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.
|
MapSubject.WithValue<V> |
hasKey(K key)
Deprecated.
Use
containsKey(Object) instead. |
void |
hasSize(int expectedSize)
Fails if the map does not have the given size.
|
void |
isEmpty()
Fails if the map is not empty.
|
void |
isNotEmpty()
Fails if the map is empty.
|
void |
lacksKey(K key)
Deprecated.
Use
doesNotContainKey(Object) instead. |
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isInstanceOf, isNotA, isNotEqualTo, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled, named
public void isEmpty()
public void isNotEmpty()
public final void hasSize(int expectedSize)
public void containsKey(Object key)
public void doesNotContainKey(Object key)
public void containsEntry(Object key, Object value)
public void doesNotContainEntry(Object key, Object value)
@Deprecated public MapSubject.WithValue<V> hasKey(K key)
containsKey(Object)
instead.@Deprecated public void lacksKey(K key)
doesNotContainKey(Object)
instead.Copyright © 2014. All rights reserved.