Package org.assertj.core.error
Class ShouldNotContainSequence
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldNotContainSequence
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotContainSequence extends BasicErrorMessageFactory
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 aString.- Author:
- Chris Arnott
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldNotContainSequence(Object actual, Object sequence, int index, ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldNotContainSequence(Object actual, Object sequence, int index)Creates a new.ShouldNotContainSequencestatic ErrorMessageFactoryshouldNotContainSequence(Object actual, Object sequence, int index, ComparisonStrategy comparisonStrategy)Creates a new.ShouldNotContainSequence-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Constructor Detail
-
ShouldNotContainSequence
private ShouldNotContainSequence(Object actual, Object sequence, int index, ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
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.
-
-