Class AbstractFlowableTestCase

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.flowable.form.engine.impl.test.AbstractTestCase
com.flowable.form.engine.impl.test.AbstractFlowableTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
SpringFlowableTestCase

public abstract class AbstractFlowableTestCase extends AbstractTestCase
Author:
Tom Baeyens, Joram Barrez
  • Field Details

    • formEngine

      protected FormEngine formEngine
    • deploymentIdFromDeploymentAnnotation

      protected String deploymentIdFromDeploymentAnnotation
    • deploymentIdsForAutoCleanup

      protected List<String> deploymentIdsForAutoCleanup
    • exception

      protected Throwable exception
    • formEngineConfiguration

      protected FormEngineConfiguration formEngineConfiguration
    • managementService

      protected org.flowable.form.api.FormManagementService managementService
    • repositoryService

      protected CoreFormRepositoryService repositoryService
    • formService

      protected org.flowable.form.api.FormService formService
  • Constructor Details

    • AbstractFlowableTestCase

      public AbstractFlowableTestCase()
  • Method Details

    • initializeFormEngine

      protected abstract void initializeFormEngine()
    • closeDownFormEngine

      protected void closeDownFormEngine()
    • nullifyServices

      protected void nullifyServices()
    • runBare

      public void runBare() throws Throwable
      Overrides:
      runBare in class junit.framework.TestCase
      Throws:
      Throwable
    • assertAndEnsureCleanDb

      protected void assertAndEnsureCleanDb() throws Throwable
      Each test is assumed to clean up all DB content it entered. After a test method executed, this method scans all tables to see if the DB is completely clean. It throws AssertionFailed in case the DB is not clean. If the DB is not clean, it is cleaned by performing a create a drop.
      Throws:
      Throwable
    • initializeServices

      protected void initializeServices()