Class StringSubject.CaseInsensitiveStringComparison

  • Enclosing class:
    StringSubject

    public static final class StringSubject.CaseInsensitiveStringComparison
    extends Object
    Offers case-insensitive checks for string values.
    • Method Detail

      • isNotEqualTo

        public void isNotEqualTo​(@Nullable String other)
        Checks that the actual value is not equal to the given string (while ignoring case). The meaning of equality is the same as for the isEqualTo(java.lang.String) method.
      • contains

        public void contains​(@Nullable CharSequence string)
        Checks that the actual value contains the given sequence (while ignoring case).
      • doesNotContain

        public void doesNotContain​(@Nullable CharSequence string)
        Checks that the actual value does not contain the given sequence (while ignoring case).