コード例 #1
0
 private void checkFalse(Object x, Object y) {
   assertFalse(equality.equivalent(x, y));
   assertFalse(equality.equivalent(y, x));
   try {
     equality.assertEquivalent(x, y, new LinkedList<String>());
     throw new RuntimeException();
   } catch (AssertionError e) {
   }
   try {
     equality.assertEquivalent(y, x, new LinkedList<String>());
     throw new RuntimeException();
   } catch (AssertionError e) {
   }
 }
コード例 #2
0
 private void checkTrue(Object x, Object y) {
   assertTrue(equality.equivalent(x, y));
   assertTrue(equality.equivalent(y, x));
   equality.assertEquivalent(x, y, new LinkedList<String>());
   equality.assertEquivalent(y, x, new LinkedList<String>());
 }