Class ThreadAssertions


  • public final class ThreadAssertions
    extends java.lang.Object
    Facility class for asserting that the current thread is of some kind.
    Author:
    Fabrizio Giudici
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertThread​(ThreadType threadType)
      Asserts that the current thread is of the specified type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadAssertions

        public ThreadAssertions()
    • Method Detail

      • assertThread

        public static void assertThread​(@Nonnull
                                        ThreadType threadType)
        Asserts that the current thread is of the specified type.
        Parameters:
        threadType - the thread type