public abstract class AbstractActivitiTestCase extends PvmTestCase
Modifier and Type | Field and Description |
---|---|
protected String |
deploymentIdFromDeploymentAnnotation |
protected List<String> |
deploymentIdsForAutoCleanup |
protected DynamicBpmnService |
dynamicBpmnService |
protected Throwable |
exception |
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 |
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.
|
void |
assertProcessEnded(String processInstanceId) |
protected void |
closeDownProcessEngine() |
org.activiti.bpmn.model.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. |
org.activiti.bpmn.model.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() |
void |
waitForJobExecutorOnCondition(long maxMillisToWait,
long intervalMillis,
Callable<Boolean> condition) |
void |
waitForJobExecutorToProcessAllJobs(long maxMillisToWait,
long intervalMillis) |
assertTextPresent, assertTextPresentIgnoreCase, runTest
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, setName, tearDown, toString
protected ProcessEngine processEngine
protected String deploymentIdFromDeploymentAnnotation
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 DynamicBpmnService dynamicBpmnService
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected abstract void initializeProcessEngine()
protected void closeDownProcessEngine()
public void runBare() throws Throwable
runBare
in class junit.framework.TestCase
Throwable
protected void assertAndEnsureCleanDb() throws Throwable
Throwable
protected 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 org.activiti.bpmn.model.BpmnModel createOneTaskTestProcess()
BpmnModel
version of the same process back.public org.activiti.bpmn.model.BpmnModel createTwoTasksTestProcess()
public String deployOneTaskTestProcess()
createOneTaskTestProcess()
.public String deployTwoTasksTestProcess()
Copyright © 2016 Alfresco. All rights reserved.