Package org.fest.assertions.error
Class ShouldHaveAtIndex
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.ShouldHaveAtIndex
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveAtIndex 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 a
failed.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> ErrorMessageFactory
shouldHaveAtIndex(java.util.List<T> actual, Condition<? super T> condition, Index index, T found)
Creates a newShouldHaveAtIndex
.-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldHaveAtIndex
public static <T> ErrorMessageFactory shouldHaveAtIndex(java.util.List<T> actual, Condition<? super T> condition, Index index, T found)
Creates a newShouldHaveAtIndex
.- 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
.
-
-