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

public Class ShouldContainKeys

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.util.Set

Creates an error message indicating that an assertion that verifies a map contains a key..
Authors
Nicolas François, Joel Costigliola

Field Summary

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

Constructor Summary

AccessConstructor and Description
private <K>
ShouldContainKeys(Object actual, Set<K> key)

private <K>
ShouldContainKeys(Object actual, K key)

Method Summary

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

Returns:

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

Creates a new ShouldContainKeys.

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

Constructor Detail

ShouldContainKeysback to summary
private <K> ShouldContainKeys(Object actual, Set<K> key)
ShouldContainKeysback to summary
private <K> ShouldContainKeys(Object actual, K key)

Method Detail

shouldContainKeysback to summary
public static <K> ErrorMessageFactory shouldContainKeys(Object actual, Set<K> keys)

Creates a new ShouldContainKeys.

Parameters
<K>
key type
actual:Object

the actual value in the failed assertion.

keys:Set<K>

the expected keys

Returns:ErrorMessageFactory

the created ErrorMessageFactory.