Class GenericEachMethodsThrowableHandler<T extends Throwable>

All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
Direct Known Subclasses:
IgnoreHeadlessExceptionEachMethodsThrowableHandler

public abstract class GenericEachMethodsThrowableHandler<T extends Throwable> extends AbstractThrowableTypeResolver<T> implements org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
The abstract class GenericEachMethodsThrowableHandler can be used if the HeadlessException should be ignored in the @BeforeEach lifecycle methods. For more information for the lifecycle https://junit.org/junit5/docs/current/user-guide/#extensions-execution-order-overview
  • Constructor Details

    • GenericEachMethodsThrowableHandler

      public GenericEachMethodsThrowableHandler()
  • Method Details

    • handleBeforeEachMethodExecutionException

      public void handleBeforeEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable
      Specified by:
      handleBeforeEachMethodExecutionException in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
      Throws:
      Throwable
    • handleAfterEachMethodExecutionException

      public void handleAfterEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable
      Specified by:
      handleAfterEachMethodExecutionException in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
      Throws:
      Throwable