private void checkEquals(String message, Object expected, Object actual) { Assert.assertTrue( message + " expected:<" + convertToString(expected) + "> actual:" + convertToString(actual) + ">", myEquality.equals(expected, actual)); }
public void containsAll(Collection list, Collection subCollection) { if (list.containsAll(subCollection)) return; for (Object item : subCollection) { boolean isContained = false; for (Object superSetItem : list) { if (myEquality.equals(superSetItem, item)) { isContained = true; break; } } Assert.assertTrue(myStringConvertion.convert(item), isContained); } }