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
public abstract class AbstractProcessEngineTestCase
- extends PvmTestCase
- Author:
- Tom Baeyens
| 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 |
processEngine
protected ProcessEngine processEngine
deploymentId
protected String deploymentId
exception
protected Throwable exception
processEngineConfiguration
protected ProcessEngineConfigurationImpl processEngineConfiguration
repositoryService
protected RepositoryService repositoryService
runtimeService
protected RuntimeService runtimeService
taskService
protected TaskService taskService
formService
protected FormService formService
historyService
protected HistoryService historyService
identityService
protected IdentityService identityService
managementService
protected ManagementService managementService
authorizationService
protected AuthorizationService authorizationService
caseService
protected CaseService caseService
filterService
protected FilterService filterService
externalTaskService
protected ExternalTaskService externalTaskService
decisionService
protected DecisionService decisionService
AbstractProcessEngineTestCase
public AbstractProcessEngineTestCase()
initializeProcessEngine
protected abstract void initializeProcessEngine()
closeDownProcessEngine
protected void closeDownProcessEngine()
runBare
public void runBare()
throws Throwable
- Overrides:
runBare in class junit.framework.TestCase
- Throws:
Throwable
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()
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
public void deployment(org.camunda.bpm.model.bpmn.BpmnModelInstance... bpmnModelInstances)
Copyright © 2015 camunda services GmbH. All rights reserved.