java.lang.Object
io.github.ascopes.jct.junit.JctExtension
- All Implemented Interfaces:
AfterAllCallback,AfterEachCallback,BeforeAllCallback,BeforeEachCallback,Extension
@API(since="0.4.0",
status=STABLE)
public final class JctExtension
extends Object
implements Extension, BeforeEachCallback, BeforeAllCallback, AfterEachCallback, AfterAllCallback
Implicit extension that will manage the lifecycle of
Managed-annotated Workspace
fields within JUnit5 test classes.- Since:
- 0.4.0
- Author:
- Ashley Scopes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAll(ExtensionContext context) voidafterEach(ExtensionContext context) voidbeforeAll(ExtensionContext context) voidbeforeEach(ExtensionContext context)
-
Constructor Details
-
JctExtension
public JctExtension()
-
-
Method Details
-
beforeAll
- Specified by:
beforeAllin interfaceBeforeAllCallback- Throws:
Exception
-
beforeEach
- Specified by:
beforeEachin interfaceBeforeEachCallback- Throws:
Exception
-
afterAll
- Specified by:
afterAllin interfaceAfterAllCallback- Throws:
Exception
-
afterEach
- Specified by:
afterEachin interfaceAfterEachCallback- Throws:
Exception
-