// mockito seems not to be able to correctly allow
// StringTypeAdapter actual = mock(StringTypeAdapter.class);
// when(actual).equals(isA(Object.class, Object.class)).thenReturn(true)
// as its not picking up the overridden method but
// Object.equals(Object).
StringTypeAdapter actual = new StringTypeAdapter() {
@Override
public boolean equals(Object a, Object b) {
return true;
}
};
actual.set("abc123");
formatter.check(c, actual);
assertThat(
c.body(),
is(equalTo("pass:<div>something matching logically abc123<br/><i><span class='fit_label'>expected</span></i><hr/><br/>abc123<br/><i><span class='fit_label'>actual</span></i></div>")));