Modifier and Type | Class and Description |
---|---|
static interface |
MapSubject.WithValue<V> |
Subject.HasField
failureStrategy
Constructor and Description |
---|
MapSubject(FailureStrategy failureStrategy,
M map) |
Modifier and Type | Method and Description |
---|---|
static <K,V,M extends Map<K,V>> |
create(FailureStrategy failureStrategy,
Map<K,V> map) |
MapSubject.WithValue<V> |
hasKey(K key)
Attests that the subject contains the provided key or fails.
|
void |
hasValue(V key) |
void |
isEmpty()
Attests that the subject holds no objects, or fails.
|
void |
isNotEmpty()
Attests that the subject holds one or more objects, or fails
|
void |
lacksKey(K key) |
void |
lacksValue(V key) |
check, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isNotA, isNotEqualTo, isNotNull, isNull, labeled, named
public MapSubject(FailureStrategy failureStrategy, M map)
public void isEmpty()
public void isNotEmpty()
public MapSubject.WithValue<V> hasKey(K key)
public void lacksKey(K key)
public void hasValue(V key)
public void lacksValue(V key)
public static <K,V,M extends Map<K,V>> MapSubject<? extends MapSubject<?,K,V,M>,K,V,M> create(FailureStrategy failureStrategy, Map<K,V> map)
Copyright © 2017. All rights reserved.