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 a String.
Author:
Chris Arnott
  • Method Details

    • shouldNotContainSequence

      public static ErrorMessageFactory shouldNotContainSequence(Object actual, Object sequence, int index, org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
      Parameters:
      actual - the actual value in the failed assertion.
      sequence - the sequence of values expected to be in actual.
      index - the index where the sequence was found in actual.
      comparisonStrategy - the ComparisonStrategy used to evaluate assertion.
      Returns:
      the created ErrorMessageFactory.
    • shouldNotContainSequence

      public static ErrorMessageFactory shouldNotContainSequence(Object actual, Object sequence, int index)
      Parameters:
      actual - the actual value in the failed assertion.
      sequence - the sequence of values expected to be in actual.
      index - the index where the sequence was found.
      Returns:
      the created ErrorMessageFactory.