Package generic.test

Class 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 by AbstractGenericTest.
    • Constructor Detail

      • ConcurrentTestExceptionHandler

        public ConcurrentTestExceptionHandler()
    • 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()
      • hasException

        public static boolean hasException()
      • uncaughtException

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