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

public class ResourceFlowableExtension extends InternalFlowableExtension
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
  • Field Details

    • configurationResource

      protected final String configurationResource
    • processEngineName

      protected final String processEngineName
    • configurationConsumer

      protected final Consumer<ProcessEngineConfiguration> configurationConsumer
    • currentExtensionContext

      protected org.junit.jupiter.api.extension.ExtensionContext currentExtensionContext
  • Constructor Details

  • Method Details

    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
      Overrides:
      beforeEach in class InternalFlowableExtension
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
      Overrides:
      afterEach in class InternalFlowableExtension
      Throws:
      Exception
    • getProcessEngine

      protected ProcessEngine getProcessEngine(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      getProcessEngine in class InternalFlowableExtension
    • initializeProcessEngine

      protected ProcessEngine initializeProcessEngine()
    • getStore

      protected org.junit.jupiter.api.extension.ExtensionContext.Store getStore(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      getStore in class InternalFlowableExtension
    • rebootEngine

      public ProcessEngine rebootEngine()