ErrorMessageFactory
public class ShouldHaveAtIndex extends BasicErrorMessageFactory
Condition
failed.arguments, format
Modifier and Type | Method | Description |
---|---|---|
static <T> ErrorMessageFactory |
shouldHaveAtIndex(List<? extends T> actual,
Condition<? super T> condition,
Index index,
T found) |
Creates a new
ShouldHaveAtIndex . |
create, create, create, equals, hashCode, toString, unquotedString
public static <T> ErrorMessageFactory shouldHaveAtIndex(List<? extends T> actual, Condition<? super T> condition, Index index, T found)
ShouldHaveAtIndex
.T
- guarantees that the type of the actual value and the generic type of the Condition
are the same.actual
- the actual value in the failed assertion.condition
- the Condition
.index
- the index of the expected value.found
- the value in actual
stored under index
.ErrorMessageFactory
.Copyright © 2014–2019. All rights reserved.