Package org.assertj.core.error
Class ShouldBeAtIndex
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldBeAtIndex
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeAtIndex extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given index that satisfies afailed.Condition- Author:
- Bo Gotthardt
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldBeAtIndex(List<? extends T> actual, Condition<? super T> condition, Index index, T found)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> ErrorMessageFactoryshouldBeAtIndex(List<? extends T> actual, Condition<? super T> condition, Index index, T found)Creates a new.ShouldBeAtIndex-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
shouldBeAtIndex
public static <T> ErrorMessageFactory shouldBeAtIndex(List<? extends T> actual, Condition<? super T> condition, Index index, T found)
Creates a new.ShouldBeAtIndex- Type Parameters:
T- guarantees that the type of the actual value and the generic type of theConditionare the same.- Parameters:
actual- the actual value in the failed assertion.condition- theCondition.index- the index of the expected value.found- the value inactualstored underindex.- Returns:
- the created
ErrorMessageFactory.
-
-