Class ShouldNotStartWith

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldNotStartWith
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a group of elements does not start with a given value or sequence of values failed. A group of elements can be a collection, an array or a String.
    Author:
    Michal Kordas
    • Constructor Detail

      • ShouldNotStartWith

        private ShouldNotStartWith​(Object actual,
                                   Object expected,
                                   org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
    • Method Detail

      • shouldNotStartWith

        public static ErrorMessageFactory shouldNotStartWith​(Object actual,
                                                             Object expected,
                                                             org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
        Creates a new ShouldNotStartWith.
        Parameters:
        actual - the actual value in the failed assertion.
        expected - the value or sequence of values that actual is expected not to start with.
        comparisonStrategy - the ComparisonStrategy used to evaluate assertion.
        Returns:
        the created ErrorMessageFactory.
      • shouldNotStartWith

        public static ErrorMessageFactory shouldNotStartWith​(Object actual,
                                                             Object expected)
        Creates a new ShouldNotStartWith.
        Parameters:
        actual - the actual value in the failed assertion.
        expected - the value or sequence of values that actual is expected not to start with.
        Returns:
        the created ErrorMessageFactory.