Package org.fest.assertions.error
Class ShouldBeAtIndex
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.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.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> ErrorMessageFactoryshouldBeAtIndex(java.util.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 Detail
-
shouldBeAtIndex
public static <T> ErrorMessageFactory shouldBeAtIndex(java.util.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.
-
-