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

public Class ElementsShouldBe

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

Creates an error message indicating that an assertion that verifies that each element of a group satisfies a Condition A group of elements can be a collection, an array.
Authors
Nicolas François, Mikhail Mazursky

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ElementsShouldBe(Object actual, Object notSatisfies, Condition<?> condition)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
elementsShouldBe
(Object
the actual value in the failed assertion.
actual
,
Object
elements that not satisfies the condition
notSatisfies
,
Condition<?>
the Condition.
condition
)

Creates a new ElementsShouldBe.

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

Constructor Detail

ElementsShouldBeback to summary
private ElementsShouldBe(Object actual, Object notSatisfies, Condition<?> condition)

Method Detail

elementsShouldBeback to summary
public static ErrorMessageFactory elementsShouldBe(Object actual, Object notSatisfies, Condition<?> condition)

Creates a new ElementsShouldBe.

Parameters
actual:Object

the actual value in the failed assertion.

notSatisfies:Object

elements that not satisfies the condition

condition:Condition<?>

the Condition.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.