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 TypeMethodDescriptionvoidafterAll(org.junit.jupiter.api.extension.ExtensionContext context) voidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context) protected abstract voidprotected abstract void
-
Field Details
-
annotationClass
-
-
Constructor Details
-
BMUnit5AbstractHandler
-
-
Method Details
-
getAnnotationClass
-
beforeAll
- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback- Throws:
Exception
-
beforeEach
- Specified by:
beforeEachin 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:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Throws:
Exception
-
afterEach
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback- Throws:
Exception
-
uninstall
protected abstract void uninstall(Class<?> testClass, Method testMethod, A annotation) throws Exception - Throws:
Exception
-