Package org.assertj.core.error
Class ShouldContainEntry
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldContainEntry
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies a map contains an entry..
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> ErrorMessageFactory shouldContainEntry
(Map<K, V> actual, Condition<?> entryCondition) Creates a new
.ShouldContainEntry
static <K,
V> ErrorMessageFactory shouldContainEntry
(Map<K, V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition) Creates a new
.ShouldContainEntry
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldContainEntry
public static <K,V> ErrorMessageFactory shouldContainEntry(Map<K, V> actual, Condition<?> entryCondition) Creates a new
.ShouldContainEntry
- Type Parameters:
K
- key typeV
- value type- Parameters:
actual
- the actual map in the failed assertion.entryCondition
- entry condition.- Returns:
- the created
ErrorMessageFactory
.
-
shouldContainEntry
public static <K,V> ErrorMessageFactory shouldContainEntry(Map<K, V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition) Creates a new
.ShouldContainEntry
- Type Parameters:
K
- key typeV
- value type- Parameters:
actual
- the actual map in the failed assertion.keyCondition
- key condition.valueCondition
- value condition.- Returns:
- the created
ErrorMessageFactory
.
-