Package org.assertj.core.error
Class ShouldNotContainSequence
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotContainSequence
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a group of elements does not contain a
sequence of values failed. A group of elements can be a collection, an array or a
String.- Author:
- Chris Arnott
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldNotContainSequence(Object actual, Object sequence, int index) Creates a new.ShouldNotContainSequencestatic ErrorMessageFactoryshouldNotContainSequence(Object actual, Object sequence, int index, ComparisonStrategy comparisonStrategy) Creates a new.ShouldNotContainSequenceMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldNotContainSequence
public static ErrorMessageFactory shouldNotContainSequence(Object actual, Object sequence, int index, ComparisonStrategy comparisonStrategy) Creates a new.ShouldNotContainSequence- Parameters:
actual- the actual value in the failed assertion.sequence- the sequence of values expected to be inactual.index- the index where the sequence was found in actual.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotContainSequence
public static ErrorMessageFactory shouldNotContainSequence(Object actual, Object sequence, int index) Creates a new.ShouldNotContainSequence- Parameters:
actual- the actual value in the failed assertion.sequence- the sequence of values expected to be inactual.index- the index where the sequence was found.- Returns:
- the created
ErrorMessageFactory.
-