Class AbstractProcessEngineTestCase

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.camunda.bpm.engine.impl.test.PvmTestCase
org.camunda.bpm.engine.impl.test.AbstractProcessEngineTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
PluggableProcessEngineTestCase, ResourceProcessEngineTestCase

public abstract class AbstractProcessEngineTestCase extends PvmTestCase
Author:
Tom Baeyens
  • Field Details

  • Constructor Details

    • AbstractProcessEngineTestCase

      public AbstractProcessEngineTestCase()
  • Method Details

    • initializeProcessEngine

      protected abstract void initializeProcessEngine()
    • closeDownProcessEngine

      protected void closeDownProcessEngine()
    • runBare

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

      protected void deleteHistoryCleanupJobs()
    • deleteDeployments

      protected void deleteDeployments()
    • initializeServices

      protected void initializeServices()
    • clearServiceReferences

      protected void clearServiceReferences()
    • assertProcessEnded

      public void assertProcessEnded(String processInstanceId)
    • assertProcessNotEnded

      public void assertProcessNotEnded(String processInstanceId)
    • assertCaseEnded

      public void assertCaseEnded(String caseInstanceId)
    • waitForJobExecutorToProcessAllJobs

      @Deprecated public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis)
      Deprecated.
    • waitForJobExecutorToProcessAllJobs

      public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait)
    • waitForJobExecutorOnCondition

      @Deprecated public void waitForJobExecutorOnCondition(long maxMillisToWait, long intervalMillis, Callable<Boolean> condition)
      Deprecated.
    • waitForJobExecutorOnCondition

      public void waitForJobExecutorOnCondition(long maxMillisToWait, Callable<Boolean> condition)
    • executeAvailableJobs

      public void executeAvailableJobs()
      Execute all available jobs recursively till no more jobs found.
    • executeAvailableJobs

      public void executeAvailableJobs(int expectedExecutions)
      Execute all available jobs recursively till no more jobs found or the number of executions is higher than expected.
      Parameters:
      expectedExecutions - number of expected job executions
      Throws:
      junit.framework.AssertionFailedError - when execute less or more jobs than expected
      See Also:
    • executeAvailableJobs

      public void executeAvailableJobs(boolean recursive)
    • areJobsAvailable

      public boolean areJobsAvailable()
    • getInstancesForActivitiyId

      @Deprecated protected List<ActivityInstance> getInstancesForActivitiyId(ActivityInstance activityInstance, String activityId)
      Deprecated.
    • getInstancesForActivityId

      protected List<ActivityInstance> getInstancesForActivityId(ActivityInstance activityInstance, String activityId)
    • runAsUser

      protected void runAsUser(String userId, List<String> groupIds, Runnable r)
    • deployment

      protected String deployment(BpmnModelInstance... bpmnModelInstances)
    • deployment

      protected String deployment(String... resources)
    • deploymentForTenant

      protected String deploymentForTenant(String tenantId, BpmnModelInstance... bpmnModelInstances)
    • deploymentForTenant

      protected String deploymentForTenant(String tenantId, String... resources)
    • deploymentForTenant

      protected String deploymentForTenant(String tenantId, String classpathResource, BpmnModelInstance modelInstance)
    • deployment

      protected String deployment(DeploymentBuilder deploymentBuilder, BpmnModelInstance... bpmnModelInstances)
    • deployment

      protected String deployment(DeploymentBuilder deploymentBuilder, String... resources)
    • deploymentWithBuilder

      protected String deploymentWithBuilder(DeploymentBuilder builder)