public abstract class AbstractProcessEngineTestCase extends PvmTestCase
Modifier and Type | Field and Description |
---|---|
protected AuthorizationService |
authorizationService |
protected CaseService |
caseService |
protected DecisionService |
decisionService |
protected String |
deploymentId |
protected Set<String> |
deploymentIds |
protected Throwable |
exception |
protected ExternalTaskService |
externalTaskService |
protected FilterService |
filterService |
protected FormService |
formService |
protected HistoryService |
historyService |
protected IdentityService |
identityService |
protected ManagementService |
managementService |
protected ProcessEngine |
processEngine |
protected ProcessEngineConfigurationImpl |
processEngineConfiguration |
protected RepositoryService |
repositoryService |
protected RuntimeService |
runtimeService |
protected TaskService |
taskService |
Constructor and Description |
---|
AbstractProcessEngineTestCase() |
Modifier and Type | Method and Description |
---|---|
boolean |
areJobsAvailable() |
void |
assertCaseEnded(String caseInstanceId) |
void |
assertProcessEnded(String processInstanceId) |
void |
assertProcessNotEnded(String processInstanceId) |
protected void |
clearServiceReferences() |
protected void |
closeDownProcessEngine() |
protected void |
deleteDeployments() |
protected String |
deployment(BpmnModelInstance... bpmnModelInstances) |
protected String |
deployment(DeploymentBuilder deploymentBuilder,
BpmnModelInstance... bpmnModelInstances) |
protected String |
deployment(DeploymentBuilder deploymentBuilder,
String... resources) |
protected String |
deployment(String... resources) |
protected String |
deploymentForTenant(String tenantId,
BpmnModelInstance... bpmnModelInstances) |
protected String |
deploymentForTenant(String tenantId,
String... resources) |
protected String |
deploymentForTenant(String tenantId,
String classpathResource,
BpmnModelInstance modelInstance) |
protected String |
deploymentWithBuilder(DeploymentBuilder builder) |
void |
executeAvailableJobs()
Execute all available jobs recursively till no more jobs found.
|
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 |
initializeProcessEngine() |
protected void |
initializeServices() |
protected void |
runAsUser(String userId,
List<String> groupIds,
Runnable r) |
void |
runBare() |
void |
waitForJobExecutorOnCondition(long maxMillisToWait,
Callable<Boolean> condition) |
void |
waitForJobExecutorOnCondition(long maxMillisToWait,
long intervalMillis,
Callable<Boolean> condition)
Deprecated.
|
void |
waitForJobExecutorToProcessAllJobs(long maxMillisToWait) |
void |
waitForJobExecutorToProcessAllJobs(long maxMillisToWait,
long intervalMillis)
Deprecated.
|
assertTextPresent, assertTextPresentIgnoreCase, defaultManualActivation
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
protected ProcessEngine processEngine
protected String deploymentId
protected Throwable exception
protected ProcessEngineConfigurationImpl processEngineConfiguration
protected RepositoryService repositoryService
protected RuntimeService runtimeService
protected TaskService taskService
protected FormService formService
protected HistoryService historyService
protected IdentityService identityService
protected ManagementService managementService
protected AuthorizationService authorizationService
protected CaseService caseService
protected FilterService filterService
protected ExternalTaskService externalTaskService
protected DecisionService decisionService
protected abstract void initializeProcessEngine()
protected void closeDownProcessEngine()
public void runBare() throws Throwable
runBare
in class junit.framework.TestCase
Throwable
protected void deleteDeployments()
protected void initializeServices()
protected void clearServiceReferences()
public void assertProcessEnded(String processInstanceId)
public void assertProcessNotEnded(String processInstanceId)
public void assertCaseEnded(String caseInstanceId)
@Deprecated public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis)
public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait)
@Deprecated public void waitForJobExecutorOnCondition(long maxMillisToWait, long intervalMillis, Callable<Boolean> condition)
public void waitForJobExecutorOnCondition(long maxMillisToWait, Callable<Boolean> condition)
public void executeAvailableJobs()
public void executeAvailableJobs(int expectedExecutions)
expectedExecutions
- number of expected job executionsjunit.framework.AssertionFailedError
- when execute less or more jobs than expectedexecuteAvailableJobs()
public boolean areJobsAvailable()
@Deprecated protected List<ActivityInstance> getInstancesForActivitiyId(ActivityInstance activityInstance, String activityId)
protected List<ActivityInstance> getInstancesForActivityId(ActivityInstance activityInstance, String activityId)
protected String deployment(BpmnModelInstance... bpmnModelInstances)
protected String deploymentForTenant(String tenantId, BpmnModelInstance... bpmnModelInstances)
protected String deploymentForTenant(String tenantId, String classpathResource, BpmnModelInstance modelInstance)
protected String deployment(DeploymentBuilder deploymentBuilder, BpmnModelInstance... bpmnModelInstances)
protected String deployment(DeploymentBuilder deploymentBuilder, String... resources)
protected String deploymentWithBuilder(DeploymentBuilder builder)
Copyright © 2018. All rights reserved.