Better JUnit failures.
@@ -39,7 +39,7 @@ public void testCompletedWithoutTimeout() {
TestUtils.sleep(100);
ThreadMonitor.stop(monitor);
} catch (final InterruptedException e) {
- fail("Timed Out");
+ fail("Timed Out", e);
}
}
@@ -55,7 +55,7 @@ public void testNoTimeoutMinus1() {
TestUtils.sleep(100);
ThreadMonitor.stop(monitor);
} catch (final Exception e) {
- fail("Timeout -1, threw " + e);
+ fail("Timeout -1, threw " + e, e);
}
}
@@ -71,7 +71,7 @@ public void testNoTimeoutZero() {
TestUtils.sleep(100);
ThreadMonitor.stop(monitor);
} catch (final Exception e) {
- fail("Timeout 0, threw " + e);
+ fail("Timeout 0, threw " + e, e);
}
}
@@ -90,4 +90,3 @@ public void testTimeout() {
}
}
}
-
