public final class StringSubject.CaseInsensitiveStringComparison extends Object
Modifier and Type | Method and Description |
---|---|
void |
contains(CharSequence expectedSequence)
Fails if the string does not contain the given sequence (while ignoring case).
|
void |
doesNotContain(CharSequence expectedSequence)
Fails if the string contains the given sequence (while ignoring case).
|
void |
isEqualTo(String expected)
Fails if the subject is not equal to the given sequence (while ignoring case).
|
void |
isNotEqualTo(String unexpected)
Fails if the subject is equal to the given string (while ignoring case).
|
public void isEqualTo(String expected)
String.equalsIgnoreCase(java.lang.String)
Example: "abc" is equal to "ABC", but not to "abcd".
public void isNotEqualTo(String unexpected)
isEqualTo(java.lang.String)
method.public void contains(CharSequence expectedSequence)
public void doesNotContain(CharSequence expectedSequence)
Copyright © 2018. All rights reserved.