Package org.fest.assertions.error
Class ShouldNotContainAtIndex
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldNotContainAtIndex
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies a group of elements does not contain a value at a given
index failed. A group of elements can be a collection, an array or a
It also mention the
String
.It also mention the
ComparisonStrategy
if the default one is not used.- Author:
- Alex Ruiz, Joel Costigliola
-
Field Summary
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldNotContainAtIndex
(Object actual, Object expected, Index index) Creates a newShouldNotContainAtIndex
.static ErrorMessageFactory
shouldNotContainAtIndex
(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy) Creates a newShouldNotContainAtIndex
.Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
Method Details
-
shouldNotContainAtIndex
public static ErrorMessageFactory shouldNotContainAtIndex(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy) Creates a newShouldNotContainAtIndex
.- Parameters:
actual
- the actual value in the failed assertion.expected
- value expected to be inactual
.index
- the index of the expected value.comparisonStrategy
- theComparisonStrategy
used to evaluate assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldNotContainAtIndex
public static ErrorMessageFactory shouldNotContainAtIndex(Object actual, Object expected, Index index) Creates a newShouldNotContainAtIndex
.- Parameters:
actual
- the actual value in the failed assertion.expected
- value expected to be inactual
.index
- the index of the expected value.- Returns:
- the created
ErrorMessageFactory
.
-