Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldNotContainKeys

extends BasicErrorMessageFactory
Class Inheritance
Static Imports
org.assertj.core.error.ShouldNotContainKey.shouldNotContainKey

Creates an error message indicating that an assertion that verifies a map does not contain keys.
Author
dorzey

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private <K>

Method Summary

Modifier and TypeMethod and Description
public static <
key type
K
>
ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotContainKeys
(Object
the actual value in the failed assertion.
actual
,
Set<K>
the unexpected keys
keys
)

Creates a new ShouldNotContainKeys.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldNotContainKeysback to summary
private <K> ShouldNotContainKeys(Object actual, Set<K> key)

Method Detail

shouldNotContainKeysback to summary
public static <K> ErrorMessageFactory shouldNotContainKeys(Object actual, Set<K> keys)

Creates a new ShouldNotContainKeys.

Parameters
<K>
key type
actual:Object

the actual value in the failed assertion.

keys:Set<K>

the unexpected keys

Returns:ErrorMessageFactory

the created ErrorMessageFactory.