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

public Class ElementsShouldBeExactly

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

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ElementsShouldBeExactly(Object actual, int times, Condition<?> condition)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
elementsShouldBeExactly
(Object
the actual value in the failed assertion.
actual
,
int
exactly times the condition should be verify.
times
,
Condition<?>
the Condition.
condition
)

Creates a new ElementsShouldBeExactly.

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

Constructor Detail

ElementsShouldBeExactlyback to summary
private ElementsShouldBeExactly(Object actual, int times, Condition<?> condition)

Method Detail

elementsShouldBeExactlyback to summary
public static ErrorMessageFactory elementsShouldBeExactly(Object actual, int times, Condition<?> condition)

Creates a new ElementsShouldBeExactly.

Parameters
actual:Object

the actual value in the failed assertion.

times:int

exactly times the condition should be verify.

condition:Condition<?>

the Condition.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.