use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateEscalationEventThrowing in project kie-wb-common by kiegroup.
the class ThrowingIntermediateEscalationEventTest method testUnmarshallTopLevelEmptyEventProperties.
@Test
@Override
public void testUnmarshallTopLevelEmptyEventProperties() throws Exception {
Diagram<Graph, Metadata> diagram = getDiagram();
assertDiagram(diagram, AMOUNT_OF_NODES_IN_DIAGRAM);
IntermediateEscalationEventThrowing emptyTopEvent = getThrowingIntermediateNodeById(diagram, EMPTY_TOP_LEVEL_EVENT_ID, HAS_NO_INCOME_EDGE, ZERO_OUTGOING_EDGES);
assertGeneralSet(emptyTopEvent.getGeneral(), EMPTY_VALUE, EMPTY_VALUE);
assertEscalationEventExecutionSet(emptyTopEvent.getExecutionSet(), EMPTY_VALUE);
assertDataIOSet(emptyTopEvent.getDataIOSet(), EMPTY_VALUE);
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateEscalationEventThrowing in project kie-wb-common by kiegroup.
the class ThrowingIntermediateEscalationEventTest method testUnmarshallTopLevelEventWithEdgesEmptyProperties.
@Test
@Override
public void testUnmarshallTopLevelEventWithEdgesEmptyProperties() {
Diagram<Graph, Metadata> diagram = getDiagram();
assertDiagram(diagram, AMOUNT_OF_NODES_IN_DIAGRAM);
IntermediateEscalationEventThrowing emptyEvent = getThrowingIntermediateNodeById(diagram, EMPTY_WITH_EDGES_TOP_LEVEL_EVENT_ID, HAS_INCOME_EDGE, TWO_OUTGOING_EDGES);
assertGeneralSet(emptyEvent.getGeneral(), EMPTY_VALUE, EMPTY_VALUE);
assertEscalationEventExecutionSet(emptyEvent.getExecutionSet(), EMPTY_VALUE);
assertDataIOSet(emptyEvent.getDataIOSet(), EMPTY_VALUE);
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateEscalationEventThrowing in project kie-wb-common by kiegroup.
the class ThrowingIntermediateEscalationEventTest method testUnmarshallSubprocessLevelEventEmptyProperties.
@Test
@Override
public void testUnmarshallSubprocessLevelEventEmptyProperties() throws Exception {
Diagram<Graph, Metadata> diagram = getDiagram();
assertDiagram(diagram, AMOUNT_OF_NODES_IN_DIAGRAM);
IntermediateEscalationEventThrowing emptySubprocessEvent = getThrowingIntermediateNodeById(diagram, EMPTY_SUBPROCESS_LEVEL_EVENT_ID, HAS_NO_INCOME_EDGE, ZERO_OUTGOING_EDGES);
assertGeneralSet(emptySubprocessEvent.getGeneral(), EMPTY_VALUE, EMPTY_VALUE);
assertEscalationEventExecutionSet(emptySubprocessEvent.getExecutionSet(), EMPTY_VALUE);
assertDataIOSet(emptySubprocessEvent.getDataIOSet(), EMPTY_VALUE);
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateEscalationEventThrowing in project kie-wb-common by kiegroup.
the class IntermediateThrowEventConverterTest method escalationEvent.
@Test
public void escalationEvent() {
IntermediateEscalationEventThrowing definition = mock(IntermediateEscalationEventThrowing.class);
EscalationEventDefinition eventDefinition = mock(EscalationEventDefinition.class);
IntermediateThrowEvent intermediateThrowEvent = mockIntermediateThrowEvent(definition);
tested.escalationEvent(intermediateThrowEvent, eventDefinition);
verifyCommonProperties(definition);
verify(eventDefinition).getEscalationRef();
verify(definition).setExecutionSet(any(EscalationEventExecutionSet.class));
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateEscalationEventThrowing in project kie-wb-common by kiegroup.
the class IntermediateThrowEventConverterTest method verifyEscalationEventConvert.
private void verifyEscalationEventConvert() {
IntermediateEscalationEventThrowing definition = mock(IntermediateEscalationEventThrowing.class);
EscalationEventDefinition eventDefinition = mock(EscalationEventDefinition.class);
IntermediateThrowEvent intermediateThrowEvent = mockIntermediateThrowEvent(definition);
eventDefinitions.clear();
eventDefinitions.add(eventDefinition);
tested.convert(intermediateThrowEvent);
verify(tested).escalationEvent(intermediateThrowEvent, eventDefinition);
}
Aggregations