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

public Class ShouldContainValue

extends BasicErrorMessageFactory
Class Inheritance
Imports
org.assertj.core.api.Condition

Creates an error message indicating that an assertion that verifies a map contains a value.
Author
Nicolas François

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
private
ShouldContainValue(Object actual, Condition<?> valueCondition)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldContainValue
(Object
the actual value in the failed assertion.
actual
,
Object
the value not found
value
)

Creates a new ShouldContainValue.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldContainValue
(Object
the actual map in the failed assertion.
actual
,
Condition<?>
value condition.
valueCondition
)

Creates a new ShouldContainValue.

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

Constructor Detail

ShouldContainValueback to summary
private ShouldContainValue(Object actual, Object value)
ShouldContainValueback to summary
private ShouldContainValue(Object actual, Condition<?> valueCondition)

Method Detail

shouldContainValueback to summary
public static ErrorMessageFactory shouldContainValue(Object actual, Object value)

Creates a new ShouldContainValue.

Parameters
actual:Object

the actual value in the failed assertion.

value:Object

the value not found

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldContainValueback to summary
public static ErrorMessageFactory shouldContainValue(Object actual, Condition<?> valueCondition)

Creates a new ShouldContainValue.

Parameters
actual:Object

the actual map in the failed assertion.

valueCondition:Condition<?>

value condition.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.