mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 22:29:53 +01:00
Merge branch '670-uncaught-exceptions-do-not-print-a-stack-trace-in-introductionintegrationtest' into 'master'
Print stack trace for uncaught exceptions during tests for easier debugging Closes #670 See merge request !355
This commit is contained in:
@@ -9,8 +9,6 @@ import static org.junit.Assert.assertEquals;
|
|||||||
|
|
||||||
public abstract class BriarIntegrationTest extends BriarTestCase {
|
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,
|
protected void assertGroupCount(MessageTracker tracker, GroupId g,
|
||||||
long msgCount, long unreadCount, long latestMsg)
|
long msgCount, long unreadCount, long latestMsg)
|
||||||
throws DbException {
|
throws DbException {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ public abstract class BriarTestCase {
|
|||||||
// Ensure exceptions thrown on worker threads cause tests to fail
|
// Ensure exceptions thrown on worker threads cause tests to fail
|
||||||
UncaughtExceptionHandler fail = new UncaughtExceptionHandler() {
|
UncaughtExceptionHandler fail = new UncaughtExceptionHandler() {
|
||||||
public void uncaughtException(Thread thread, Throwable throwable) {
|
public void uncaughtException(Thread thread, Throwable throwable) {
|
||||||
|
throwable.printStackTrace();
|
||||||
fail();
|
fail();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user