Package generic.test
Class ConcurrentTestExceptionHandler
java.lang.Object
generic.test.ConcurrentTestExceptionHandler
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
public class ConcurrentTestExceptionHandler
extends Object
implements 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 by
AbstractGenericTest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
static void
disable()
static void
enable()
static List<TestExceptionTracker>
static void
static boolean
static boolean
static void
void
uncaughtException
(Thread thread, Throwable t)
-
Constructor Details
-
ConcurrentTestExceptionHandler
public ConcurrentTestExceptionHandler()
-
-
Method Details
-
registerHandler
public static void registerHandler() -
handle
-
clear
public static void clear() -
enable
public static void enable() -
disable
public static void disable() -
isEnabled
public static boolean isEnabled() -
getExceptions
-
hasException
public static boolean hasException() -
uncaughtException
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
-