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

public Class ShouldNotContainKey

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies a map does not contains a key failed.
Author
Nicolas François

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotContainKey
(Object
the actual value in the failed assertion.
actual
,
Object
the unexpected key.
key
)

Creates a new ShouldNotContainKey.

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

Constructor Detail

ShouldNotContainKeyback to summary
private ShouldNotContainKey(Object actual, Object key)

Method Detail

shouldNotContainKeyback to summary
public static ErrorMessageFactory shouldNotContainKey(Object actual, Object key)

Creates a new ShouldNotContainKey.

Parameters
actual:Object

the actual value in the failed assertion.

key:Object

the unexpected key.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.