Package org.assertj.core.error
Class ShouldNotContainKeys
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldNotContainKeys
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotContainKeys extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies a map does not contain keys.- Author:
- dorzey
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldNotContainKeys(Object actual, Set<K> key)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K> ErrorMessageFactory
shouldNotContainKeys(Object actual, Set<K> keys)
Creates a new
.ShouldNotContainKeys
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
shouldNotContainKeys
public static <K> ErrorMessageFactory shouldNotContainKeys(Object actual, Set<K> keys)
Creates a new
.ShouldNotContainKeys
- Type Parameters:
K
- key type- Parameters:
actual
- the actual value in the failed assertion.keys
- the unexpected keys- Returns:
- the created
ErrorMessageFactory
.
-
-