Class GenericAllMethodsThrowableHandler<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.all.GenericAllMethodsThrowableHandler<T>
-
- Type Parameters:
T
- the generic type for the concrete throwable type
- All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
- Direct Known Subclasses:
IgnoreHeadlessExceptionAllMethodsThrowableHandler
public abstract class GenericAllMethodsThrowableHandler<T extends java.lang.Throwable> extends AbstractThrowableTypeResolver<T> implements org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
The abstract classGenericAllMethodsThrowableHandler
can be extended with a concrete type that have to be ignored in the lifecycle from the test annotation. For more information for the lifecycle https://junit.org/junit5/docs/current/user-guide/#extensions-execution-order-overview
-
-
Constructor Summary
Constructors Constructor Description GenericAllMethodsThrowableHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleAfterAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable throwable)
void
handleBeforeAllMethodExecutionException(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
-
handleBeforeAllMethodExecutionException
public void handleBeforeAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable throwable) throws java.lang.Throwable
- Specified by:
handleBeforeAllMethodExecutionException
in interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
- Throws:
java.lang.Throwable
-
handleAfterAllMethodExecutionException
public void handleAfterAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable throwable) throws java.lang.Throwable
- Specified by:
handleAfterAllMethodExecutionException
in interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
- Throws:
java.lang.Throwable
-
-