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

public Class ElementsShouldHaveAtLeast

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 at least 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
ElementsShouldHaveAtLeast(Object actual, int times, Condition<?> condition)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

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

Creates a new ElementsShouldHaveAtLeast.

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

Constructor Detail

ElementsShouldHaveAtLeastback to summary
private ElementsShouldHaveAtLeast(Object actual, int times, Condition<?> condition)

Method Detail

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

Creates a new ElementsShouldHaveAtLeast.

Parameters
actual:Object

the actual value in the failed assertion.

times:int

least time the condition should be verify.

condition:Condition<?>

the Condition.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.