Create a gist now

Instantly share code, notes, and snippets.

@olafleur /TryCatch.java Secret
Created May 10, 2016

What would you like to do?
for (Method test : m) {
try {
test.invoke(testsClass);
} catch (Exception e) {
fail(test.getName() + " : \n" + e.getCause().getMessage() + "\n" + printArray(e.getCause().getStackTrace()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment