Class ResourceFlowableIdmExtension
java.lang.Object
org.flowable.idm.engine.test.InternalFlowableIdmExtension
org.flowable.idm.engine.test.ResourceFlowableIdmExtension
- 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 an
IdmEngine.
This extension needs to be registered via RegisterExtension. It additionally allows for
customizing the IdmEngineConfiguration
A new IdmEngine 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<IdmEngineConfiguration> protected final Stringprotected final StringFields inherited from class InternalFlowableIdmExtension
EMPTY_LINE, logger -
Constructor Summary
ConstructorsConstructorDescriptionResourceFlowableIdmExtension(String configurationResource, String idmEngineName, Consumer<IdmEngineConfiguration> configurationConsumer) ResourceFlowableIdmExtension(String configurationResource, Consumer<IdmEngineConfiguration> configurationConsumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) protected IdmEnginegetIdmEngine(org.junit.jupiter.api.extension.ExtensionContext context) protected org.junit.jupiter.api.extension.ExtensionContext.StoregetStore(org.junit.jupiter.api.extension.ExtensionContext context) protected IdmEngineMethods inherited from class InternalFlowableIdmExtension
afterAll, assertAndEnsureCleanDb, beforeEach, cleanTestAndAssertAndEnsureCleanDb, doFinally, 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
-
idmEngineName
-
configurationConsumer
-
-
Constructor Details
-
ResourceFlowableIdmExtension
public ResourceFlowableIdmExtension(String configurationResource, Consumer<IdmEngineConfiguration> configurationConsumer) -
ResourceFlowableIdmExtension
public ResourceFlowableIdmExtension(String configurationResource, String idmEngineName, Consumer<IdmEngineConfiguration> configurationConsumer)
-
-
Method Details
-
afterEach
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback- Overrides:
afterEachin classInternalFlowableIdmExtension- Throws:
Exception
-
getIdmEngine
- Specified by:
getIdmEnginein classInternalFlowableIdmExtension
-
initializeIdmEngine
-
getStore
protected org.junit.jupiter.api.extension.ExtensionContext.Store getStore(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
getStorein classInternalFlowableIdmExtension
-