public class ShouldContainAtIndex extends BasicErrorMessageFactory
String.ComparisonStrategy if the default one is not used.arguments, format, formatter| Modifier | Constructor and Description |
|---|---|
private |
ShouldContainAtIndex(java.lang.Object actual,
java.lang.Object expected,
Index index,
java.lang.Object found,
ComparisonStrategy comparisonStrategy) |
| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldContainAtIndex(java.lang.Object actual,
java.lang.Object expected,
Index index,
java.lang.Object found)
Creates a new
ShouldContainAtIndex. |
static ErrorMessageFactory |
shouldContainAtIndex(java.lang.Object actual,
java.lang.Object expected,
Index index,
java.lang.Object found,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainAtIndex. |
create, create, create, equals, hashCode, toString, unquotedStringprivate ShouldContainAtIndex(java.lang.Object actual,
java.lang.Object expected,
Index index,
java.lang.Object found,
ComparisonStrategy comparisonStrategy)
public static ErrorMessageFactory shouldContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, java.lang.Object found, ComparisonStrategy comparisonStrategy)
ShouldContainAtIndex.actual - the actual value in the failed assertion.expected - value expected to be in actual.index - the index of the expected value.found - the value in actual stored under index.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, java.lang.Object found)
ShouldContainAtIndex.actual - the actual value in the failed assertion.expected - value expected to be in actual.index - the index of the expected value.found - the value in actual stored under index.ErrorMessageFactory.