@Test public void describesAMismatch() { final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); String expectedMismatchString = "toString() was \"Cheese\""; assertMismatchDescription(expectedMismatchString, matcher, "Cheese"); }
public HasToString(Matcher<? super String> toStringMatcher) { super(toStringMatcher, "with toString()", "toString()"); }
HasToString extends FeatureMatcher<T, String> { public HasToString(Matcher<? super String> toStringMatcher) { super(toStringMatcher, "with toString()", "toString()"); } }
HasToString extends FeatureMatcher<T, String> { public HasToString(Matcher<? super String> toStringMatcher) { super(toStringMatcher, "with toString()", "toString()"); } HasToString(Matcher<? super String> toStringMatcher); }
HasToString extends FeatureMatcher<T, String> { public HasToString(Matcher<? super String> toStringMatcher) { super(toStringMatcher, "with toString()", "toString()"); } HasToString(Matcher<? super String> toStringMatcher); static Matcher<T> hasToString(Matcher<? super String> toStringMatcher); static Matcher<T> hasToString(String expectedToString); }
HasToString extends FeatureMatcher<T, String> { public HasToString(Matcher<? super String> toStringMatcher) { super(toStringMatcher, "with toString()", "toString()"); } HasToString(Matcher<? super String> toStringMatcher); static Matcher<T> hasToString(Matcher<? super String> toStringMatcher); static Matcher<T> hasToString(String expectedToString);  }