org.apache.lucene.util
Class TestRuleReportUncaughtExceptions

java.lang.Object
  extended by org.apache.lucene.util.TestRuleReportUncaughtExceptions
All Implemented Interfaces:
org.junit.rules.TestRule

public class TestRuleReportUncaughtExceptions
extends Object
implements org.junit.rules.TestRule

Subscribes to Thread.setDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler) and causes test/ suite failures if uncaught exceptions are detected.


Nested Class Summary
static class TestRuleReportUncaughtExceptions.UncaughtExceptionEntry
           
 
Constructor Summary
TestRuleReportUncaughtExceptions()
           
 
Method Summary
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement s, Description d)
           
 boolean hasUncaughtExceptions()
          Just a check if anything's been caught.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRuleReportUncaughtExceptions

public TestRuleReportUncaughtExceptions()
Method Detail

apply

public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement s,
                                               Description d)
Specified by:
apply in interface org.junit.rules.TestRule

hasUncaughtExceptions

public boolean hasUncaughtExceptions()
Just a check if anything's been caught.



Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.