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

public Class ShouldSatisfyOnlyOnce

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.util.List

Creates an error message indicating that an assertion that verifies that requirements are not satisfied only once.

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
private
ShouldSatisfyOnlyOnce(Iterable<?> actual, List<?> satisfiedElements)

Method Summary

Modifier and TypeMethod and Description
public static <
the iterable elements type.
E
>
ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldSatisfyOnlyOnce
(Iterable<? extends E>
the actual iterable in the failed assertion.
actual
,
List<? extends E>
the elements which satisfied the requirement
satisfiedElements
)

Creates a new ShouldSatisfyOnlyOnce.

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

Field Detail

MORE_THAN_ONE_ELEMENT_SATISFIED_REQUIREMENTSback to summary
private static final String MORE_THAN_ONE_ELEMENT_SATISFIED_REQUIREMENTS
NO_ELEMENT_SATISFIED_REQUIREMENTSback to summary
private static final String NO_ELEMENT_SATISFIED_REQUIREMENTS

Constructor Detail

ShouldSatisfyOnlyOnceback to summary
private ShouldSatisfyOnlyOnce(Iterable<?> actual)
ShouldSatisfyOnlyOnceback to summary
private ShouldSatisfyOnlyOnce(Iterable<?> actual, List<?> satisfiedElements)

Method Detail

shouldSatisfyOnlyOnceback to summary
public static <E> ErrorMessageFactory shouldSatisfyOnlyOnce(Iterable<? extends E> actual, List<? extends E> satisfiedElements)

Creates a new ShouldSatisfyOnlyOnce.

Parameters
<E>
the iterable elements type.
actual:Iterable<? extends E>

the actual iterable in the failed assertion.

satisfiedElements:List<? extends E>

the elements which satisfied the requirement

Returns:ErrorMessageFactory

the created ErrorMessageFactory.