예제 #1
0
 private void checkEquals(String message, Object expected, Object actual) {
   Assert.assertTrue(
       message
           + " expected:<"
           + convertToString(expected)
           + "> actual:"
           + convertToString(actual)
           + ">",
       myEquality.equals(expected, actual));
 }
예제 #2
0
 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);
   }
 }