Package org.camunda.bpm.engine.impl.test
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
- Author:
- Tom Baeyens
-
Field Summary
Modifier and TypeFieldDescriptionprotected AuthorizationService
protected CaseService
protected DecisionService
protected String
protected Throwable
protected ExternalTaskService
protected FilterService
protected FormService
protected HistoryService
protected IdentityService
protected ManagementService
protected ProcessEngine
protected ProcessEngineConfigurationImpl
protected RepositoryService
protected RuntimeService
protected TaskService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
assertCaseEnded
(String caseInstanceId) void
assertProcessEnded
(String processInstanceId) void
assertProcessNotEnded
(String processInstanceId) protected void
protected void
protected void
protected void
protected String
deployment
(String... resources) protected String
deployment
(DeploymentBuilder deploymentBuilder, String... resources) protected String
deployment
(DeploymentBuilder deploymentBuilder, BpmnModelInstance... bpmnModelInstances) protected String
deployment
(BpmnModelInstance... bpmnModelInstances) protected String
deploymentForTenant
(String tenantId, String... resources) protected String
deploymentForTenant
(String tenantId, String classpathResource, BpmnModelInstance modelInstance) protected String
deploymentForTenant
(String tenantId, BpmnModelInstance... bpmnModelInstances) protected String
deploymentWithBuilder
(DeploymentBuilder builder) void
Execute all available jobs recursively till no more jobs found.void
executeAvailableJobs
(boolean recursive) void
executeAvailableJobs
(int expectedExecutions) Execute all available jobs recursively till no more jobs found or the number of executions is higher than expected.protected List<ActivityInstance>
getInstancesForActivitiyId
(ActivityInstance activityInstance, String activityId) Deprecated.protected List<ActivityInstance>
getInstancesForActivityId
(ActivityInstance activityInstance, String activityId) protected abstract void
protected void
protected void
void
runBare()
void
waitForJobExecutorOnCondition
(long maxMillisToWait, long intervalMillis, Callable<Boolean> condition) Deprecated.void
waitForJobExecutorOnCondition
(long maxMillisToWait, Callable<Boolean> condition) void
waitForJobExecutorToProcessAllJobs
(long maxMillisToWait) void
waitForJobExecutorToProcessAllJobs
(long maxMillisToWait, long intervalMillis) Deprecated.Methods inherited from class org.camunda.bpm.engine.impl.test.PvmTestCase
assertTextPresent, assertTextPresentIgnoreCase, defaultManualActivation
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, tearDown, toString
-
Field Details
-
processEngine
-
deploymentId
-
deploymentIds
-
exception
-
processEngineConfiguration
-
repositoryService
-
runtimeService
-
taskService
-
formService
-
historyService
-
identityService
-
managementService
-
authorizationService
-
caseService
-
filterService
-
externalTaskService
-
decisionService
-
-
Constructor Details
-
AbstractProcessEngineTestCase
public AbstractProcessEngineTestCase()
-
-
Method Details
-
initializeProcessEngine
protected abstract void initializeProcessEngine() -
closeDownProcessEngine
protected void closeDownProcessEngine() -
runBare
- Overrides:
runBare
in classjunit.framework.TestCase
- Throws:
Throwable
-
deleteHistoryCleanupJobs
protected void deleteHistoryCleanupJobs() -
deleteDeployments
protected void deleteDeployments() -
initializeServices
protected void initializeServices() -
clearServiceReferences
protected void clearServiceReferences() -
assertProcessEnded
-
assertProcessNotEnded
-
assertCaseEnded
-
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
-
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
-
deployment
-
deployment
-
deploymentForTenant
-
deploymentForTenant
-
deploymentForTenant
protected String deploymentForTenant(String tenantId, String classpathResource, BpmnModelInstance modelInstance) -
deployment
protected String deployment(DeploymentBuilder deploymentBuilder, BpmnModelInstance... bpmnModelInstances) -
deployment
-
deploymentWithBuilder
-