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