Package org.assertj.core.error
Class ShouldContainKey
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldContainKey
- 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldContainKey(Object actual, Condition<?> keyCondition) Creates a new.ShouldContainKeyMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldContainKey
Creates a new.ShouldContainKey- Parameters:
actual- the actual map in the failed assertion.keyCondition- key condition.- Returns:
- the created
ErrorMessageFactory.
-