org.activiti.test
Class ProcessEngineBuilder
java.lang.Object
org.junit.rules.TestWatchman
org.activiti.test.ProcessEngineBuilder
- All Implemented Interfaces:
- org.junit.rules.MethodRule
- Direct Known Subclasses:
- ProcessDeployer
public class ProcessEngineBuilder
- extends org.junit.rules.TestWatchman
A JUnit @Rule that bootstraps a ProcessEngine and makes it
available to test methods.
- Author:
- Tom Baeyens, Dave Syer
| Methods inherited from class org.junit.rules.TestWatchman |
apply, failed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessEngineBuilder
public ProcessEngineBuilder()
ProcessEngineBuilder
public ProcessEngineBuilder(java.lang.String configurationResource)
getProcessEngine
public ProcessEngine getProcessEngine()
getProcessService
public ProcessService getProcessService()
getHistoricDataService
public HistoricDataService getHistoricDataService()
getIdentityService
public IdentityService getIdentityService()
getTaskService
public TaskService getTaskService()
getManagementService
public ManagementService getManagementService()
starting
public void starting(org.junit.runners.model.FrameworkMethod method)
- Overrides:
starting in class org.junit.rules.TestWatchman
buildProcessEngine
public void buildProcessEngine()
succeeded
public void succeeded(org.junit.runners.model.FrameworkMethod method)
- Overrides:
succeeded in class org.junit.rules.TestWatchman
finished
public void finished(org.junit.runners.model.FrameworkMethod method)
- Overrides:
finished in class org.junit.rules.TestWatchman
assertProcessEnded
public void assertProcessEnded(java.lang.String processInstanceId)
assertDatabaseIsClean
public void assertDatabaseIsClean()
- asserts that the database is clean after a test. Normally called
automatically, but exposed as a public method in case it is needed as a
manual check.
deleteTasks
public void deleteTasks(java.util.Collection<java.lang.String> taskIds)
getCommandExecutor
public org.activiti.impl.interceptor.CommandExecutor getCommandExecutor()
getJobExecutor
public org.activiti.impl.jobexecutor.JobExecutor getJobExecutor()
getJobHandlers
public org.activiti.impl.job.JobHandlers getJobHandlers()
Copyright © 2010 Alfresco. All Rights Reserved.