Package org.flowable.engine.impl.test
Class AbstractFlowableTestCase
java.lang.Object
org.flowable.engine.impl.test.AbstractTestCase
org.flowable.engine.impl.test.AbstractFlowableTestCase
- Direct Known Subclasses:
PluggableFlowableTestCase,ResourceFlowableTestCase,SpringFlowableTestCase
@EnsureCleanDb(excludeTables={"ACT_GE_PROPERTY","ACT_ID_PROPERTY","FLW_EV_DATABASECHANGELOGLOCK","FLW_EV_DATABASECHANGELOG"})
public abstract class AbstractFlowableTestCase
extends AbstractTestCase
- Author:
- Tom Baeyens, Joram Barrez, Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DynamicBpmnServiceprotected FormServiceprotected HistoryServiceprotected IdentityServiceprotected ManagementServiceprotected ProcessEngineprotected ProcessEngineConfigurationImplprotected ProcessMigrationServiceprotected RepositoryServiceprotected RuntimeServiceprotected TaskService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertActivityInstancesAreSame(HistoricActivityInstance historicActInst, ActivityInstance activityInstance) protected voidassertHistoricActivitiesDeleteReason(ProcessInstance processInstance, String expectedDeleteReason, String... activityIds) protected voidassertHistoricTasksDeleteReason(ProcessInstance processInstance, String expectedDeleteReason, String... taskNames) voidassertProcessEnded(String processInstanceId) voidassertProcessEnded(String processInstanceId, long timeout) protected static voidcleanDeployments(ProcessEngine processEngine) protected voidcompleteProcessInstanceTasks(String processInstanceId) protected voidcompleteTask(Task task) protected ProcessSince the 'one task process' is used everywhere the actual process content doesn't matter, instead of copying around the BPMN 2.0 xml one could use this method which gives aBpmnModelversion of the same process back.protected voiddeleteDeployment(String deploymentId) protected voidCreates and deploys the one task process.protected ProcessDefinitiondeployProcessDefinition(String name, String path) protected ProcessDefinitiondeployProcessDefinition(String name, String path, String tenantId) voidexecuteJobExecutorForTime(long maxMillisToWait, long intervalMillis) protected StringgetJobActivityId(Job job) groupListContentBy(List<T> source, Function<T, String> classifier) final voidinitializeServices(ProcessEngine processEngine) protected static <T> List<T>mergeLists(List<T> list1, List<T> list2) protected static voidvalidateHistoryData(ProcessEngine processEngine) voidwaitForHistoryJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis) voidwaitForJobExecutorOnCondition(long maxMillisToWait, long intervalMillis, Callable<Boolean> condition) voidwaitForJobExecutorToProcessAllHistoryJobs(long maxMillisToWait, long intervalMillis) voidwaitForJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis) voidwaitForJobExecutorToProcessAllJobsAndAllTimerJobs(long maxMillisToWait, long intervalMillis) voidwaitForJobExecutorToProcessAllJobsAndExecutableTimerJobs(long maxMillisToWait, long intervalMillis)
-
Field Details
-
processEngine
-
deploymentIdsForAutoCleanup
-
processEngineConfiguration
-
repositoryService
-
runtimeService
-
taskService
-
formService
-
historyService
-
identityService
-
managementService
-
dynamicBpmnService
-
processMigrationService
-
-
Constructor Details
-
AbstractFlowableTestCase
public AbstractFlowableTestCase()
-
-
Method Details
-
initializeServices
-
cleanDeployments
-
validateHistoryData
-
assertProcessEnded
-
assertProcessEnded
-
assertActivityInstancesAreSame
public static void assertActivityInstancesAreSame(HistoricActivityInstance historicActInst, ActivityInstance activityInstance) -
waitForJobExecutorToProcessAllJobs
public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis) -
waitForJobExecutorOnCondition
-
executeJobExecutorForTime
public void executeJobExecutorForTime(long maxMillisToWait, long intervalMillis) -
waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs
public void waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs(long maxMillisToWait, long intervalMillis) -
waitForJobExecutorToProcessAllJobsAndAllTimerJobs
public void waitForJobExecutorToProcessAllJobsAndAllTimerJobs(long maxMillisToWait, long intervalMillis) -
waitForJobExecutorToProcessAllHistoryJobs
public void waitForJobExecutorToProcessAllHistoryJobs(long maxMillisToWait, long intervalMillis) -
waitForHistoryJobExecutorToProcessAllJobs
public void waitForHistoryJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis) -
createOneTaskTestProcess
Since the 'one task process' is used everywhere the actual process content doesn't matter, instead of copying around the BPMN 2.0 xml one could use this method which gives aBpmnModelversion of the same process back. -
createOneTaskTestProcessWithCandidateStarterGroup
-
createOneTaskProcess
-
createTwoTasksTestProcess
-
deployOneTaskTestProcess
Creates and deploys the one task process. SeecreateOneTaskTestProcess().- Returns:
- The process definition id (NOT the process definition key) of deployed one task process.
-
deployOneTaskTestProcessWithCandidateStarterGroup
-
deployTwoTasksTestProcess
-
deleteDeployments
protected void deleteDeployments() -
deleteDeployment
-
assertHistoricTasksDeleteReason
protected void assertHistoricTasksDeleteReason(ProcessInstance processInstance, String expectedDeleteReason, String... taskNames) -
assertHistoricActivitiesDeleteReason
protected void assertHistoricActivitiesDeleteReason(ProcessInstance processInstance, String expectedDeleteReason, String... activityIds) -
completeTask
-
mergeLists
-
groupListContentBy
-
getJobActivityId
-
deployProcessDefinition
-
deployProcessDefinition
-
completeProcessInstanceTasks
-