public class ShouldContainAtIndex extends BasicErrorMessageFactory
String.ComparisonStrategy if the default one is not used.arguments, format| 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, equals, hashCode, toStringpublic 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.Copyright © 2007–2018. All rights reserved.