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