Package org.assertj.guava.error
Class ShouldContainKeys
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.guava.error.ShouldContainKeys
-
- All Implemented Interfaces:
org.assertj.core.error.ErrorMessageFactory
public class ShouldContainKeys extends org.assertj.core.error.BasicErrorMessageFactoryCreates an error message indicating that an assertion that verifies a map contains some keys failed. TODO : move to assertj-core to replaceShouldContainKeys.- Author:
- Joel Costigliola
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldContainKeys(Object actual, Object key)privateShouldContainKeys(Object actual, Object[] keys, Set<?> keysNotFound)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.assertj.core.error.ErrorMessageFactoryshouldContainKeys(Object actual, Object[] keys, Set<?> keysNotFound)Creates a new.ShouldContainKeys
-
-
-
Method Detail
-
shouldContainKeys
public static org.assertj.core.error.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.
-
-