Package org.assertj.core.error
Class ShouldHaveAtIndex
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveAtIndex
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given
index that satisfies a
Condition
failed.-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldHaveAtIndex
(List<? extends T> actual, Condition<? super T> condition, Index index, T found) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ErrorMessageFactory
shouldHaveAtIndex
(List<? extends T> actual, Condition<? super T> condition, Index index, T found) Creates a new
.ShouldHaveAtIndex
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Constructor Details
-
ShouldHaveAtIndex
-
-
Method Details
-
shouldHaveAtIndex
public static <T> ErrorMessageFactory shouldHaveAtIndex(List<? extends T> actual, Condition<? super T> condition, Index index, T found) Creates a new
.ShouldHaveAtIndex
- Type Parameters:
T
- guarantees that the type of the actual value and the generic type of theCondition
are the same.- Parameters:
actual
- the actual value in the failed assertion.condition
- theCondition
.index
- the index of the expected value.found
- the value inactual
stored underindex
.- Returns:
- the created
ErrorMessageFactory
.
-