Package org.assertj.core.error
Class ShouldSatisfyOnlyOnce
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldSatisfyOnlyOnce
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that requirements are not satisfied only once.
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> ErrorMessageFactory
shouldSatisfyOnlyOnce
(Iterable<? extends E> actual, List<? extends E> satisfiedElements) Creates a new
.ShouldSatisfyOnlyOnce
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldSatisfyOnlyOnce
public static <E> ErrorMessageFactory shouldSatisfyOnlyOnce(Iterable<? extends E> actual, List<? extends E> satisfiedElements) Creates a new
.ShouldSatisfyOnlyOnce
- Type Parameters:
E
- the iterable elements type.- Parameters:
actual
- the actual iterable in the failed assertion.satisfiedElements
- the elements which satisfied the requirement- Returns:
- the created
ErrorMessageFactory
.
-