Package org.assertj.core.error
Class ShouldContainKeys
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldContainKeys
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies a map contains a key..
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldContainKeys
(Object actual, Set<K> key) private
ShouldContainKeys
(Object actual, K key) -
Method Summary
Modifier and TypeMethodDescriptionstatic <K> ErrorMessageFactory
shouldContainKeys
(Object actual, Set<K> keys) Creates a new
.ShouldContainKeys
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Constructor Details
-
ShouldContainKeys
-
ShouldContainKeys
-
-
Method Details
-
shouldContainKeys
Creates a new
.ShouldContainKeys
- Type Parameters:
K
- key type- Parameters:
actual
- the actual value in the failed assertion.keys
- the expected keys- Returns:
- the created
ErrorMessageFactory
.
-