Skip to content
Snippets Groups Projects
Verified Commit 6e046649 authored by Torsten Grote's avatar Torsten Grote
Browse files

Print stack trace for uncaught exceptions during tests for easier debugging

parent 5674ee2d
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,6 @@ import static org.junit.Assert.assertEquals;
public abstract class BriarIntegrationTest extends BriarTestCase {
// TODO maybe we could add uncaught exception handlers for other threads here (#670)
protected void assertGroupCount(MessageTracker tracker, GroupId g,
long msgCount, long unreadCount, long latestMsg)
throws DbException {
......
......@@ -10,6 +10,7 @@ public abstract class BriarTestCase {
// Ensure exceptions thrown on worker threads cause tests to fail
UncaughtExceptionHandler fail = new UncaughtExceptionHandler() {
public void uncaughtException(Thread thread, Throwable throwable) {
throwable.printStackTrace();
fail();
}
};
......
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