Commit 9b1ceb38 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

don't print stacktrace when assert fails

parent 113bb63e
......@@ -6,6 +6,8 @@ import org.junit.runner.Description;
public class UnitTestFailedWatcher extends TestWatcher {
@Override
protected void failed(Throwable e, Description description) {
e.printStackTrace();
if (!(e instanceof AssertionError)) {
e.printStackTrace();
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment