Package org.fest.assertions.error
Class ShouldBeAtIndex
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldBeAtIndex
- 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.- Author:
- Bo Gotthardt
-
Field Summary
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ErrorMessageFactoryshouldBeAtIndex(List<T> actual, Condition<? super T> condition, Index index, T found) Creates a newShouldBeAtIndex.Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
Method Details
-
shouldBeAtIndex
public static <T> ErrorMessageFactory shouldBeAtIndex(List<T> actual, Condition<? super T> condition, Index index, T found) Creates a newShouldBeAtIndex.- 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.
-