Class 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 Detail

      • configurationResource

        protected final String configurationResource
      • processEngineName

        protected final String processEngineName
      • currentExtensionContext

        protected org.junit.jupiter.api.extension.ExtensionContext currentExtensionContext
    • Method Detail

      • 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
      • 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