public class ShouldContainEntry extends BasicErrorMessageFactory
arguments, format, formatter| Modifier | Constructor and Description |
|---|---|
private |
ShouldContainEntry(java.util.Map<K,V> actual,
Condition<?> entryCondition) |
private |
ShouldContainEntry(java.util.Map<K,V> actual,
Condition<? super K> keyCondition,
Condition<? super V> valueCondition) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> ErrorMessageFactory |
shouldContainEntry(java.util.Map<K,V> actual,
Condition<?> entryCondition)
Creates a new
. |
static <K,V> ErrorMessageFactory |
shouldContainEntry(java.util.Map<K,V> actual,
Condition<? super K> keyCondition,
Condition<? super V> valueCondition)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringprivate ShouldContainEntry(java.util.Map<K,V> actual,
Condition<?> entryCondition)
public static <K,V> ErrorMessageFactory shouldContainEntry(java.util.Map<K,V> actual, Condition<?> entryCondition)
ShouldContainEntry.K - key typeV - value typeactual - the actual map in the failed assertion.entryCondition - entry condition.ErrorMessageFactory.public static <K,V> ErrorMessageFactory shouldContainEntry(java.util.Map<K,V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition)
ShouldContainEntry.K - key typeV - value typeactual - the actual map in the failed assertion.keyCondition - key condition.valueCondition - value condition.ErrorMessageFactory.