Package org.assertj.core.error
Class ShouldNotContainAtIndex
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldNotContainAtIndex
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotContainAtIndex extends BasicErrorMessageFactory
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 aString.
It also mention theComparisonStrategyif the default one is not used.- Author:
- Alex Ruiz, Joel Costigliola
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldNotContainAtIndex(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldNotContainAtIndex(Object actual, Object expected, Index index)Creates a new.ShouldNotContainAtIndexstatic ErrorMessageFactoryshouldNotContainAtIndex(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy)Creates a new.ShouldNotContainAtIndex-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Constructor Detail
-
ShouldNotContainAtIndex
private ShouldNotContainAtIndex(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
shouldNotContainAtIndex
public static ErrorMessageFactory shouldNotContainAtIndex(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy)
Creates a new.ShouldNotContainAtIndex- Parameters:
actual- the actual value in the failed assertion.expected- value expected to be inactual.index- the index of the expected value.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotContainAtIndex
public static ErrorMessageFactory shouldNotContainAtIndex(Object actual, Object expected, Index index)
Creates a new.ShouldNotContainAtIndex- 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.
-
-