public void toStringShouldContainStringRepresentationsOfObjectAndCount(Object obj, long count) {
RankableObjectWithFields r = new RankableObjectWithFields(obj, count);
String strRepresentation = r.toString();
assertThat(strRepresentation).contains(obj.toString()).contains("" + count);
}
|