Java Code Examples for org.activiti.engine.ActivitiException#printStackTrace()
The following examples show how to use
org.activiti.engine.ActivitiException#printStackTrace() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MessageStartEventTest.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
public void testSameMessageNameInSameProcessFails() { try { repositoryService.createDeployment().addClasspathResource("org/activiti/engine/test/bpmn/event/message/testSameMessageNameInSameProcessFails.bpmn20.xml").deploy(); fail("exception expected: Cannot have more than one message event subscription with name 'newInvoiceMessage' for scope"); } catch (ActivitiException e) { e.printStackTrace(); } }
Example 2
Source File: MessageStartEventTest.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
public void testSameMessageNameInSameProcessFails() { try { repositoryService .createDeployment() .addClasspathResource("org/activiti5/engine/test/bpmn/event/message/testSameMessageNameInSameProcessFails.bpmn20.xml") .deploymentProperty(DeploymentProperties.DEPLOY_AS_ACTIVITI5_PROCESS_DEFINITION, Boolean.TRUE) .deploy(); fail("exception expected: Cannot have more than one message event subscription with name 'newInvoiceMessage' for scope"); }catch (ActivitiException e) { e.printStackTrace(); } }