Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Rule
public TestWatcher watcher = new TestWatcher() {
@Override
protected void failed(Throwable e, Description description) {
System.out.println(description.getMethodName() + ": Failed");
}
@Override
protected void succeeded(Throwable e, Description description) {
System.out.println(description.getMethodName() + ": Succeeded");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment