Home | History | Annotate | Download | only in text

Lines Matching defs:string

8  * Tests if a string is equal to another string, regardless of the case.
10 public class IsEqualIgnoringCase extends TypeSafeMatcher<String> {
12 // TODO: Replace String with CharSequence to allow for easy interoperability between
13 // String, StringBuffer, StringBuilder, CharBuffer, etc (joe).
15 private final String string;
17 public IsEqualIgnoringCase(String string) {
18 if (string == null) {
21 this.string = string;
25 public boolean matchesSafely(String item) {
26 return string.equalsIgnoreCase(item);
30 public void describeMismatchSafely(String item, Description mismatchDescription) {
37 .appendValue(string)
42 * Creates a matcher of {@link String} that matches when the examined string is equal to
50 public static Matcher<String> equalToIgnoringCase(String expectedString) {