Package org.assertj.core.error
Class ShouldNotContainSubsequence
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotContainSubsequence
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a group of elements does not contains a
subsequence 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 ErrorMessageFactory
shouldNotContainSubsequence
(Object actual, Object subsequence, int index) Creates a new
.ShouldNotContainSubsequence
static ErrorMessageFactory
shouldNotContainSubsequence
(Object actual, Object subsequence, org.assertj.core.internal.ComparisonStrategy comparisonStrategy, int index) Creates a new
.ShouldNotContainSubsequence
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldNotContainSubsequence
public static ErrorMessageFactory shouldNotContainSubsequence(Object actual, Object subsequence, org.assertj.core.internal.ComparisonStrategy comparisonStrategy, int index) Creates a new
.ShouldNotContainSubsequence
- Parameters:
actual
- the actual value in the failed assertion.subsequence
- the subsequence of values expected to be inactual
.comparisonStrategy
- theComparisonStrategy
used to evaluate assertion.index
- the index of the unexpected subsequence.- Returns:
- the created
ErrorMessageFactory
.
-
shouldNotContainSubsequence
public static ErrorMessageFactory shouldNotContainSubsequence(Object actual, Object subsequence, int index) Creates a new
.ShouldNotContainSubsequence
- Parameters:
actual
- the actual value in the failed assertion.subsequence
- the subsequence of values expected to be inactual
.index
- the index of the unexpected subsequence.- Returns:
- the created
ErrorMessageFactory
.
-