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..
- Author:
- Nicolas François, Joel Costigliola
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
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
-
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
.
-