Package org.flowable.engine.impl.test
Class PluggableFlowableExtension
- java.lang.Object
-
- org.flowable.engine.impl.test.InternalFlowableExtension
-
- org.flowable.engine.impl.test.PluggableFlowableExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.AfterEachCallback,org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.ParameterResolver
public class PluggableFlowableExtension extends InternalFlowableExtension
An extension which uses theProcessEngines.getDefaultProcessEngine()and is cached within the entire context (i.e. it would be reused by all users of the extension).This extension also activates
EnableVerboseExecutionTreeLoggingif a class is annotated with it.- Author:
- Filip Hrisafov
-
-
Field Summary
-
Fields inherited from class org.flowable.engine.impl.test.InternalFlowableExtension
ANNOTATION_DEPLOYMENT_ID_KEY, logger
-
-
Constructor Summary
Constructors Constructor Description PluggableFlowableExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEach(org.junit.jupiter.api.extension.ExtensionContext context)protected StringgetConfigurationResource(org.junit.jupiter.api.extension.ExtensionContext context)protected ProcessEnginegetProcessEngine(org.junit.jupiter.api.extension.ExtensionContext context)protected org.junit.jupiter.api.extension.ExtensionContext.StoregetStore(org.junit.jupiter.api.extension.ExtensionContext context)protected ProcessEngineinitializeProcessEngine(String configurationResource)protected CommandInvokernewLoggingExecutionTreeCommandInvoker()protected voidswapCommandInvoker(ProcessEngine processEngine, boolean debug)-
Methods inherited from class org.flowable.engine.impl.test.InternalFlowableExtension
afterAll, assertAndEnsureCleanDb, beforeEach, cleanTestAndAssertAndEnsureCleanDb, doFinally, removeDeployments, resolveParameter, supportsParameter
-
-
-
-
Method Detail
-
afterEach
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback- Overrides:
afterEachin classInternalFlowableExtension- Throws:
Exception
-
getProcessEngine
protected ProcessEngine getProcessEngine(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
getProcessEnginein classInternalFlowableExtension
-
initializeProcessEngine
protected ProcessEngine initializeProcessEngine(String configurationResource)
-
getConfigurationResource
protected String getConfigurationResource(org.junit.jupiter.api.extension.ExtensionContext context)
-
swapCommandInvoker
protected void swapCommandInvoker(ProcessEngine processEngine, boolean debug)
-
getStore
protected org.junit.jupiter.api.extension.ExtensionContext.Store getStore(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
getStorein classInternalFlowableExtension
-
newLoggingExecutionTreeCommandInvoker
protected CommandInvoker newLoggingExecutionTreeCommandInvoker()
-
-