Class ThreadAssertions


  • public final class ThreadAssertions
    extends Object
    Facility class for asserting that the current thread is of some kind.
    Author:
    Fabrizio Giudici
    • 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