Package org.assertj.core.error
Class ShouldSatisfyOnlyOnce
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldSatisfyOnlyOnce
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldSatisfyOnlyOnce extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that requirements are not satisfied only once.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
MORE_THAN_ONE_ELEMENT_SATISFIED_REQUIREMENTS
private static java.lang.String
NO_ELEMENT_SATISFIED_REQUIREMENTS
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldSatisfyOnlyOnce(java.lang.Iterable<?> actual)
private
ShouldSatisfyOnlyOnce(java.lang.Iterable<?> actual, java.util.List<?> satisfiedElements)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> ErrorMessageFactory
shouldSatisfyOnlyOnce(java.lang.Iterable<? extends E> actual, java.util.List<? extends E> satisfiedElements)
Creates a new
.ShouldSatisfyOnlyOnce
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
NO_ELEMENT_SATISFIED_REQUIREMENTS
private static final java.lang.String NO_ELEMENT_SATISFIED_REQUIREMENTS
- See Also:
- Constant Field Values
-
MORE_THAN_ONE_ELEMENT_SATISFIED_REQUIREMENTS
private static final java.lang.String MORE_THAN_ONE_ELEMENT_SATISFIED_REQUIREMENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldSatisfyOnlyOnce
public static <E> ErrorMessageFactory shouldSatisfyOnlyOnce(java.lang.Iterable<? extends E> actual, java.util.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
.
-
-