public class IsEqualIgnoringCase extends TypeSafeMatcher<String>
Constructor and Description |
---|
IsEqualIgnoringCase(String string) |
Modifier and Type | Method and Description |
---|---|
void |
describeMismatchSafely(String item,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
static Matcher<String> |
equalToIgnoringCase(String expectedString)
Creates a matcher of
String that matches when the examined string is equal to
the specified expectedString, ignoring case. |
boolean |
matchesSafely(String item)
Subclasses should implement this.
|
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
public IsEqualIgnoringCase(String string)
public boolean matchesSafely(String item)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<String>
public void describeMismatchSafely(String item, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<String>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.public static Matcher<String> equalToIgnoringCase(String expectedString)
String
that matches when the examined string is equal to
the specified expectedString, ignoring case.
For example:
assertThat("Foo", equalToIgnoringCase("FOO"))
expectedString
- the expected value of matched stringsCopyright © 2020. All rights reserved.