Package org.jboss.byteman.contrib.bmunit
Class BMUnit5AbstractHandler<A extends Annotation>
java.lang.Object
org.jboss.byteman.contrib.bmunit.BMUnit5AbstractHandler<A>
- Type Parameters:
A
- The BMUnit annotation class.
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.AfterEachCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.BeforeEachCallback
,org.junit.jupiter.api.extension.Extension
- Direct Known Subclasses:
BMUnit5ConfigHandler
,BMUnit5MultiRuleHandler
,BMUnit5MultiScriptHandler
,BMUnit5SingleRuleHandler
,BMUnit5SingleScriptHandler
public abstract class BMUnit5AbstractHandler<A extends Annotation>
extends Object
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
Base class for wiring Byteman BMUnit annotations to the test engine's lifecycle hooks.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterAll
(org.junit.jupiter.api.extension.ExtensionContext context) void
afterEach
(org.junit.jupiter.api.extension.ExtensionContext context) void
beforeAll
(org.junit.jupiter.api.extension.ExtensionContext context) void
beforeEach
(org.junit.jupiter.api.extension.ExtensionContext context) protected abstract void
protected abstract void
-
Field Details
-
annotationClass
-
-
Constructor Details
-
BMUnit5AbstractHandler
-
-
Method Details
-
getAnnotationClass
-
beforeAll
- Specified by:
beforeAll
in interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
- Throws:
Exception
-
beforeEach
- Specified by:
beforeEach
in interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
- Throws:
Exception
-
install
protected abstract void install(Class<?> testClass, Method testMethod, A annotation) throws Exception - Throws:
Exception
-
afterAll
- Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
- Throws:
Exception
-
afterEach
- Specified by:
afterEach
in interfaceorg.junit.jupiter.api.extension.AfterEachCallback
- Throws:
Exception
-
uninstall
protected abstract void uninstall(Class<?> testClass, Method testMethod, A annotation) throws Exception - Throws:
Exception
-