public class UncaughtExceptionsRule extends Object implements org.junit.rules.TestRule
Thread.setDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)
and causes test/ suite failures if uncaught exceptions are detected.Modifier and Type | Class and Description |
---|---|
static class |
UncaughtExceptionsRule.UncaughtExceptionEntry |
Constructor and Description |
---|
UncaughtExceptionsRule(LuceneTestCase ltc) |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement s,
Description d) |
boolean |
hasUncaughtExceptions()
Just a check if anything's been caught.
|
public UncaughtExceptionsRule(LuceneTestCase ltc)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement s, Description d)
apply
in interface org.junit.rules.TestRule
public boolean hasUncaughtExceptions()