/** Like assertEquals, but fails at the end of the test (during tearDown) */ public void verifyEquals(Object s1, Object s2) { try { assertEquals(s1, s2); } catch (Error e) { verificationErrors.append(throwableToString(e)); } }
/** Like assertFalse, but fails at the end of the test (during tearDown) */ public void verifyFalse(boolean b) { try { assertFalse(b); } catch (Error e) { verificationErrors.append(throwableToString(e)); } }
/** Like assertTrue, but fails at the end of the test (during tearDown) */ public void verifyTrue(boolean b) { try { assertTrue(b); } catch (Error e) { verificationErrors.append(throwableToString(e)); } }
/** Like assertEquals, but fails at the end of the test (during tearDown) */ public void verifyEquals(boolean s1, boolean s2) { try { assertEquals(new Boolean(s1), new Boolean(s2)); } catch (Error e) { verificationErrors.append(throwableToString(e)); } }
/** Like assertNotEquals, but fails at the end of the test (during tearDown) */ public void verifyNotEquals(Object s1, Object s2) { try { assertNotEquals(s1, s2); } catch (AssertionFailedError e) { verificationErrors.append(throwableToString(e)); } }
/** Like assertNotEquals, but fails at the end of the test (during tearDown) */ public void verifyNotEquals(boolean s1, boolean s2) { try { assertNotEquals(new Boolean(s1), new Boolean(s2)); } catch (AssertionFailedError e) { verificationErrors.append(throwableToString(e)); } }