Skip to content
Snippets Groups Projects
Commit 9b1ceb38 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

don't print stacktrace when assert fails

parent 113bb63e
No related branches found
No related tags found
1 merge request!859Resolve "deprecacy information for data overlay"
...@@ -6,6 +6,8 @@ import org.junit.runner.Description; ...@@ -6,6 +6,8 @@ import org.junit.runner.Description;
public class UnitTestFailedWatcher extends TestWatcher { public class UnitTestFailedWatcher extends TestWatcher {
@Override @Override
protected void failed(Throwable e, Description description) { protected void failed(Throwable e, Description description) {
e.printStackTrace(); if (!(e instanceof AssertionError)) {
e.printStackTrace();
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment