All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension
public class TestExecutorExtension<T extends ExecutorService >
extends Object
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
void
afterAll (org.junit.jupiter.api.extension.ExtensionContext context)
void
beforeAll (org.junit.jupiter.api.extension.ExtensionContext context)
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
TestExecutorExtension
public TestExecutorExtension (Supplier <T > serviceFactory)
Method Details
beforeAll
public void beforeAll (org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
Specified by:
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
Throws:
Exception
afterAll
public void afterAll (org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
Specified by:
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback
Throws:
Exception