Package generic.test
Class ConcurrentTestExceptionHandler
- java.lang.Object
-
- generic.test.ConcurrentTestExceptionHandler
-
- All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler
public class ConcurrentTestExceptionHandler extends java.lang.Object implements java.lang.Thread.UncaughtExceptionHandler
A class which handles exceptions that occur off of the main test thread. Exceptions can be reported to this class, which will later be checked byAbstractGenericTest
.
-
-
Constructor Summary
Constructors Constructor Description ConcurrentTestExceptionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
clear()
static void
disable()
static void
enable()
static java.util.List<TestExceptionTracker>
getExceptions()
static void
handle(java.lang.Thread thread, java.lang.Throwable t)
static boolean
hasException()
static boolean
isEnabled()
static void
registerHandler()
void
uncaughtException(java.lang.Thread thread, java.lang.Throwable t)
-
-
-
Method Detail
-
registerHandler
public static void registerHandler()
-
handle
public static void handle(java.lang.Thread thread, java.lang.Throwable t)
-
clear
public static void clear()
-
enable
public static void enable()
-
disable
public static void disable()
-
isEnabled
public static boolean isEnabled()
-
getExceptions
public static java.util.List<TestExceptionTracker> getExceptions()
-
hasException
public static boolean hasException()
-
uncaughtException
public void uncaughtException(java.lang.Thread thread, java.lang.Throwable t)
- Specified by:
uncaughtException
in interfacejava.lang.Thread.UncaughtExceptionHandler
-
-