Skip to content

Instantly share code, notes, and snippets.

@drewcsillag
Last active December 7, 2016 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewcsillag/fe70272d6a21835e82638415fa722e29 to your computer and use it in GitHub Desktop.
Save drewcsillag/fe70272d6a21835e82638415fa722e29 to your computer and use it in GitHub Desktop.
both or neither throw
final IsEqual<Throwable> makeBothOrNeitherThrow = new IsEqual<Throwable>() {
@Override
public boolean apply(final Throwable control, final Throwable experiment) {
final boolean result = ((control == null) == (experiment == null));
if (!result) {
/// log relevant info to Kafka
}
return result;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment