Class WildFlyExtension

java.lang.Object
org.wildfly.testing.junit.extension.WildFlyExtension
All Implemented Interfaces:
AfterAllCallback, BeforeAllCallback, Extension

public class WildFlyExtension extends Object implements BeforeAllCallback, AfterAllCallback
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 application
  • afterAll: Undeploy test's application
Author:
James R. Perkins