Class WildFlyExtension
java.lang.Object
org.wildfly.testing.junit.extension.WildFlyExtension
- All Implemented Interfaces:
AfterAllCallback,BeforeAllCallback,Extension
JUnit extension that manages WildFly server lifecycle and per-test-class deployments.
The server is started once and shared across all test classes (suite-level lifecycle). Deployments are managed per-test-class (class-level lifecycle):
beforeAll: Start server (if needed) and deploy test's applicationafterAll: Undeploy test's application
- Author:
- James R. Perkins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAll(ExtensionContext context) voidbeforeAll(ExtensionContext context)
-
Constructor Details
-
WildFlyExtension
public WildFlyExtension()
-
-
Method Details
-
beforeAll
- Specified by:
beforeAllin interfaceBeforeAllCallback- Throws:
Exception
-
afterAll
- Specified by:
afterAllin interfaceAfterAllCallback
-