public abstract class AbstractActivitiTestCase extends AbstractTestCase
| Modifier and Type | Field and Description |
|---|---|
protected String |
deploymentIdFromDeploymentAnnotation |
protected List<String> |
deploymentIdsForAutoCleanup |
protected DynamicBpmnService |
dynamicBpmnService |
protected Throwable |
exception |
protected HistoryService |
historyService |
protected ManagementService |
managementService |
protected ProcessEngine |
processEngine |
protected ProcessEngineConfigurationImpl |
processEngineConfiguration |
protected RepositoryService |
repositoryService |
protected RuntimeService |
runtimeService |
protected TaskService |
taskService |
EMPTY_LINE, isEmptyLinesEnabled, log| Constructor and Description |
|---|
AbstractActivitiTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertAndEnsureCleanDb()
Each test is assumed to clean up all DB content it entered.
|
protected void |
assertHistoricActivitiesDeleteReason(ProcessInstance processInstance,
String expectedDeleteReason,
String... activityIds) |
protected void |
assertHistoricTasksDeleteReason(ProcessInstance processInstance,
String expectedDeleteReason,
String... taskNames) |
void |
assertProcessEnded(String processInstanceId) |
protected void |
closeDownProcessEngine() |
BpmnModel |
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 a
BpmnModel
version of the same process back. |
BpmnModel |
createTwoTasksTestProcess() |
String |
deployOneTaskTestProcess()
Creates and deploys the one task process.
|
String |
deployTwoTasksTestProcess() |
void |
executeJobExecutorForTime(long maxMillisToWait,
long intervalMillis) |
protected abstract void |
initializeProcessEngine() |
protected void |
initializeServices() |
void |
runBare() |
protected void |
setUp() |
protected void |
validateHistoryData() |
void |
waitForJobExecutorOnCondition(long maxMillisToWait,
long intervalMillis,
Callable<Boolean> condition) |
void |
waitForJobExecutorToProcessAllJobs(long maxMillisToWait,
long intervalMillis) |
void |
waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs(long maxMillisToWait,
long intervalMillis) |
assertTextPresent, assertTextPresentIgnoreCase, runTestassertEquals, 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, setName, tearDown, toStringprotected ProcessEngine processEngine
protected String deploymentIdFromDeploymentAnnotation
protected Throwable exception
protected ProcessEngineConfigurationImpl processEngineConfiguration
protected RepositoryService repositoryService
protected RuntimeService runtimeService
protected TaskService taskService
protected HistoryService historyService
protected ManagementService managementService
protected DynamicBpmnService dynamicBpmnService
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionprotected abstract void initializeProcessEngine()
protected void closeDownProcessEngine()
public void runBare()
throws Throwable
runBare in class junit.framework.TestCaseThrowableprotected void validateHistoryData()
protected void assertAndEnsureCleanDb()
throws Throwable
Throwableprotected void initializeServices()
public void assertProcessEnded(String processInstanceId)
public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait,
long intervalMillis)
public void waitForJobExecutorOnCondition(long maxMillisToWait,
long intervalMillis,
Callable<Boolean> condition)
public void executeJobExecutorForTime(long maxMillisToWait,
long intervalMillis)
public void waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs(long maxMillisToWait,
long intervalMillis)
public BpmnModel createOneTaskTestProcess()
BpmnModel
version of the same process back.public BpmnModel createTwoTasksTestProcess()
public String deployOneTaskTestProcess()
createOneTaskTestProcess().public String deployTwoTasksTestProcess()
protected void assertHistoricTasksDeleteReason(ProcessInstance processInstance, String expectedDeleteReason, String... taskNames)
protected void assertHistoricActivitiesDeleteReason(ProcessInstance processInstance, String expectedDeleteReason, String... activityIds)
Copyright © 2010–2018 Alfresco. All rights reserved.