Package org.assertj.guava.error
Class ShouldContainKeys
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.guava.error.ShouldContainKeys
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies a map contains some keys failed. TODO : move to
assertj-core to replace
ShouldContainKeys
.-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldContainKeys
(Object actual, Object key) private
ShouldContainKeys
(Object actual, Object[] keys, Set<?> keysNotFound) -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldContainKeys
(Object actual, Object[] keys, Set<?> keysNotFound) 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
public static ErrorMessageFactory shouldContainKeys(Object actual, Object[] keys, Set<?> keysNotFound) Creates a new
.ShouldContainKeys
- Parameters:
actual
- the actual value in the failed assertion.keys
- the expected keys.keysNotFound
- the missing keys.- Returns:
- the created
ErrorMessageFactory
.
-