Skip to content

Instantly share code, notes, and snippets.

@ajayk
Created August 26, 2011 18:58
Show Gist options
  • Save ajayk/1174147 to your computer and use it in GitHub Desktop.
Save ajayk/1174147 to your computer and use it in GitHub Desktop.
/** 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));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment