Class ResourceFlowableExtension
java.lang.Object
org.flowable.engine.impl.test.InternalFlowableExtension
org.flowable.engine.impl.test.ResourceFlowableExtension
- 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, org.junit.jupiter.api.extension.TestInstantiationAwareExtension
An extension that uses the configured resource to create a
ProcessEngine.
This extension needs to be registered via RegisterExtension. It additionally allows for
customizing the ProcessEngineConfiguration
A new ProcessEngine will be created for each test.- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension
org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Consumer<ProcessEngineConfiguration> protected final Stringprotected org.junit.jupiter.api.extension.ExtensionContextprotected final StringFields inherited from class InternalFlowableExtension
ANNOTATION_DEPLOYMENT_ID_KEY, logger -
Constructor Summary
ConstructorsConstructorDescriptionResourceFlowableExtension(String configurationResource, String processEngineName, Consumer<ProcessEngineConfiguration> configurationConsumer) ResourceFlowableExtension(String configurationResource, Consumer<ProcessEngineConfiguration> configurationConsumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeEach(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 ProcessEngineMethods inherited from class InternalFlowableExtension
afterAll, assertAndEnsureCleanDb, cleanTestAndAssertAndEnsureCleanDb, doFinally, removeDeployments, resolveParameter, supportsParameterMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension
getTestInstantiationExtensionContextScope
-
Field Details
-
configurationResource
-
processEngineName
-
configurationConsumer
-
currentExtensionContext
protected org.junit.jupiter.api.extension.ExtensionContext currentExtensionContext
-
-
Constructor Details
-
ResourceFlowableExtension
public ResourceFlowableExtension(String configurationResource, Consumer<ProcessEngineConfiguration> configurationConsumer) -
ResourceFlowableExtension
public ResourceFlowableExtension(String configurationResource, String processEngineName, Consumer<ProcessEngineConfiguration> configurationConsumer)
-
-
Method Details
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback- Overrides:
beforeEachin classInternalFlowableExtension
-
afterEach
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback- Overrides:
afterEachin classInternalFlowableExtension- Throws:
Exception
-
getProcessEngine
- Specified by:
getProcessEnginein classInternalFlowableExtension
-
initializeProcessEngine
-
getStore
protected org.junit.jupiter.api.extension.ExtensionContext.Store getStore(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
getStorein classInternalFlowableExtension
-
rebootEngine
-