use of org.camunda.bpm.engine.test.api.delegate.AssertingJavaDelegate.DelegateExecutionAsserter in project camunda-bpm-platform by camunda.
the class DelegateExecutionHierarchyTest method testConcurrentServiceTasks.
public void testConcurrentServiceTasks() {
deployment(Bpmn.createExecutableProcess("testProcess").startEvent().parallelGateway("fork").serviceTask().camundaClass(AssertingJavaDelegate.class.getName()).parallelGateway("join").endEvent().moveToNode("fork").serviceTask().camundaClass(AssertingJavaDelegate.class.getName()).connectTo("join").done());
AssertingJavaDelegate.addAsserts(new DelegateExecutionAsserter() {
public void doAssert(DelegateExecution execution) {
assertFalse(execution.equals(execution.getProcessInstance()));
assertNull(execution.getSuperExecution());
}
});
runtimeService.startProcessInstanceByKey("testProcess");
}
Aggregations