Package org.assertj.core.error
Class ShouldSatisfy
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldSatisfy
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldSatisfy extends BasicErrorMessageFactory
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONDITION_SHOULD_BE_SATISFIED
static String
CONSUMERS_SHOULD_BE_SATISFIED_IN_ANY_ORDER
static String
CONSUMERS_SHOULD_NOT_BE_NULL
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldSatisfy(Iterable<E> actual)
private
ShouldSatisfy(Object actual, Condition<?> condition)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> ErrorMessageFactory
shouldSatisfy(T actual, Condition<? super T> condition)
static <E> ErrorMessageFactory
shouldSatisfyExactlyInAnyOrder(Iterable<E> actual)
Creates a new
.ShouldSatisfy
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
CONDITION_SHOULD_BE_SATISFIED
public static final String CONDITION_SHOULD_BE_SATISFIED
- See Also:
- Constant Field Values
-
CONSUMERS_SHOULD_BE_SATISFIED_IN_ANY_ORDER
public static final String CONSUMERS_SHOULD_BE_SATISFIED_IN_ANY_ORDER
- See Also:
- Constant Field Values
-
CONSUMERS_SHOULD_NOT_BE_NULL
public static final String CONSUMERS_SHOULD_NOT_BE_NULL
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldSatisfy
public static <T> ErrorMessageFactory shouldSatisfy(T actual, Condition<? super T> condition)
-
shouldSatisfyExactlyInAnyOrder
public static <E> ErrorMessageFactory shouldSatisfyExactlyInAnyOrder(Iterable<E> actual)
Creates a new
.ShouldSatisfy
- Type Parameters:
E
- the iterable elements type.- Parameters:
actual
- the actual iterable in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
-