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(Object actual,
Object expected,
Index index,
Object found)
Creates a new
. |
static ErrorMessageFactory |
shouldContainAtIndex(Object actual,
Object expected,
Index index,
Object found,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldContainAtIndex(Object actual, Object expected, Index index, 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(Object actual, Object expected, Index index, 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 © 2014–2019 AssertJ. All rights reserved.