Class ShouldNotContainCharSequence

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldNotContainCharSequence
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a CharSequence does not contain another CharSequence failed.
    Author:
    Alex Ruiz, Joel Costigliola, Mikhail Mazursky
    • Constructor Detail

      • ShouldNotContainCharSequence

        private ShouldNotContainCharSequence​(String format,
                                             CharSequence actual,
                                             CharSequence sequence,
                                             org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
      • ShouldNotContainCharSequence

        private ShouldNotContainCharSequence​(String format,
                                             CharSequence actual,
                                             CharSequence[] values,
                                             Set<? extends CharSequence> found,
                                             org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
    • Method Detail

      • shouldNotContain

        public static ErrorMessageFactory shouldNotContain​(CharSequence actual,
                                                           CharSequence sequence,
                                                           org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
        Parameters:
        actual - the actual value in the failed assertion.
        sequence - the charsequence expected not to be in actual.
        comparisonStrategy - the ComparisonStrategy used to evaluate assertion.
        Returns:
        the created ErrorMessageFactory.
      • shouldNotContain

        public static ErrorMessageFactory shouldNotContain​(CharSequence actual,
                                                           CharSequence[] values,
                                                           Set<? extends CharSequence> found,
                                                           org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
        Parameters:
        actual - the actual value in the failed assertion.
        values - the charsequences expected not to be in actual.
        found - the charsequences unexpectedly in actual.
        comparisonStrategy - the ComparisonStrategy used to evaluate assertion.
        Returns:
        the created ErrorMessageFactory.
      • shouldNotContainIgnoringCase

        public static ErrorMessageFactory shouldNotContainIgnoringCase​(CharSequence actual,
                                                                       CharSequence sequence)
        Parameters:
        actual - the actual value in the failed assertion.
        sequence - the sequence of values expected to be in actual, ignoring case
        Returns:
        the created ErrorMessageFactory.