Class GenericEachMethodsThrowableHandler<T extends Throwable>
java.lang.Object
io.github.astrapi69.junit.jupiter.callback.AbstractTypeResolver<T>
io.github.astrapi69.junit.jupiter.callback.AbstractThrowableTypeResolver<T>
io.github.astrapi69.junit.jupiter.callback.each.GenericEachMethodsThrowableHandler<T>
- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleAfterEachMethodExecutionException
(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) void
handleBeforeEachMethodExecutionException
(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) Methods inherited from class io.github.astrapi69.junit.jupiter.callback.AbstractThrowableTypeResolver
initialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
handleAfterAllMethodExecutionException, handleBeforeAllMethodExecutionException
-
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 interfaceorg.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 interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
- Throws:
Throwable
-