Package org.apache.lucene.util
Class UncaughtExceptionsRule
- java.lang.Object
-
- org.apache.lucene.util.UncaughtExceptionsRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class UncaughtExceptionsRule extends Object implements org.junit.rules.TestRule
Subscribes toThread.setDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)
and causes test/ suite failures if uncaught exceptions are detected.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UncaughtExceptionsRule.UncaughtExceptionEntry
-
Constructor Summary
Constructors Constructor Description UncaughtExceptionsRule(LuceneTestCase ltc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement s, org.junit.runner.Description d)
boolean
hasUncaughtExceptions()
Just a check if anything's been caught.
-
-
-
Constructor Detail
-
UncaughtExceptionsRule
public UncaughtExceptionsRule(LuceneTestCase ltc)
-
-