Class GenericEachMethodsThrowableHandler<T extends java.lang.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 java.lang.Throwable> extends AbstractThrowableTypeResolver<T> implements org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
The abstract classGenericEachMethodsThrowableHandler
can be used if theHeadlessException
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 Constructor Description GenericEachMethodsThrowableHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleAfterEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable throwable)
void
handleBeforeEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable throwable)
-
Methods inherited from class io.github.astrapi69.junit.jupiter.callback.AbstractThrowableTypeResolver
initialize
-
Methods inherited from class io.github.astrapi69.junit.jupiter.callback.AbstractTypeResolver
getType
-
-
-
-
Method Detail
-
handleBeforeEachMethodExecutionException
public void handleBeforeEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable throwable) throws java.lang.Throwable
- Specified by:
handleBeforeEachMethodExecutionException
in interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
- Throws:
java.lang.Throwable
-
handleAfterEachMethodExecutionException
public void handleAfterEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable throwable) throws java.lang.Throwable
- Specified by:
handleAfterEachMethodExecutionException
in interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
- Throws:
java.lang.Throwable
-
-