Class ShouldNotContainSubsequence

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotContainSubsequence
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldNotContainSubsequence extends BasicErrorMessageFactory
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
  • Method Details

    • shouldNotContainSubsequence

      public static ErrorMessageFactory shouldNotContainSubsequence(Object actual, Object subsequence, org.assertj.core.internal.ComparisonStrategy comparisonStrategy, int index)
      Parameters:
      actual - the actual value in the failed assertion.
      subsequence - the subsequence of values expected to be in actual.
      comparisonStrategy - the ComparisonStrategy 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)
      Parameters:
      actual - the actual value in the failed assertion.
      subsequence - the subsequence of values expected to be in actual.
      index - the index of the unexpected subsequence.
      Returns:
      the created ErrorMessageFactory.