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 Details

    • ConcurrentTestExceptionHandler

      public ConcurrentTestExceptionHandler()
  • Method Details

    • registerHandler

      public static void registerHandler()
    • handle

      public static void handle(Thread thread, 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 List<TestExceptionTracker> getExceptions()
    • hasException

      public static boolean hasException()
    • uncaughtException

      public void uncaughtException(Thread thread, Throwable t)
      Specified by:
      uncaughtException in interface Thread.UncaughtExceptionHandler