use of org.camunda.bpm.engine.test.Deployment in project camunda-bpm-platform by camunda.
the class ServiceTaskSpringDelegationTest method testDelegateClassNotABean.
@Deployment
public void testDelegateClassNotABean() {
ProcessInstance procInst = runtimeService.startProcessInstanceByKey("delegateClassToSpringBean");
assertEquals("DelegateClassNotABean was called", runtimeService.getVariable(procInst.getId(), "message"));
assertTrue((Boolean) runtimeService.getVariable(procInst.getId(), "injectedFieldIsNull"));
}
use of org.camunda.bpm.engine.test.Deployment in project camunda-bpm-platform by camunda.
the class ServiceTaskSpringDelegationTest method testMethodExpressionOnSpringBean.
@Deployment
public void testMethodExpressionOnSpringBean() {
ProcessInstance procInst = runtimeService.startProcessInstanceByKey("methodExpressionOnSpringBean");
assertEquals("ACTIVITI BPMN 2.0 PROCESS ENGINE", runtimeService.getVariable(procInst.getId(), "myVar"));
}
use of org.camunda.bpm.engine.test.Deployment in project camunda-bpm-platform by camunda.
the class ServiceTaskSpringDelegationTest method testExecutionAndTaskListenerDelegationExpression.
@Deployment
public void testExecutionAndTaskListenerDelegationExpression() {
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("executionAndTaskListenerDelegation");
assertEquals("working", runtimeService.getVariable(processInstance.getId(), "executionListenerVar"));
assertEquals("working", runtimeService.getVariable(processInstance.getId(), "taskListenerVar"));
assertEquals("executionListenerInjection", runtimeService.getVariable(processInstance.getId(), "executionListenerField"));
assertEquals("taskListenerInjection", runtimeService.getVariable(processInstance.getId(), "taskListenerField"));
}
use of org.camunda.bpm.engine.test.Deployment in project camunda-bpm-platform by camunda.
the class ServiceTaskSpringDelegationTest method testDelegateExpression.
@Deployment
public void testDelegateExpression() {
ProcessInstance procInst = runtimeService.startProcessInstanceByKey("delegateExpressionToSpringBean");
assertEquals("Activiti BPMN 2.0 process engine", runtimeService.getVariable(procInst.getId(), "myVar"));
assertEquals("fieldInjectionWorking", runtimeService.getVariable(procInst.getId(), "fieldInjection"));
}
use of org.camunda.bpm.engine.test.Deployment in project camunda-bpm-platform by camunda.
the class SpringTransactionIntegrationTest method testBasicActivitiSpringIntegration.
@Deployment
public void testBasicActivitiSpringIntegration() {
userBean.hello();
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().singleResult();
assertEquals("Hello from Printer!", runtimeService.getVariable(processInstance.getId(), "myVar"));
}
Aggregations