use of org.kie.workbench.common.stunner.bpmn.definition.property.event.escalation.EscalationEventExecutionSet in project kie-wb-common by kiegroup.
the class ProcessEscalationRefProviderTest method mockIntermediateEscalationEventThrowingNode.
private Node mockIntermediateEscalationEventThrowingNode(String escalationRefValue) {
IntermediateEscalationEventThrowing event = new IntermediateEscalationEventThrowing();
event.setExecutionSet(new EscalationEventExecutionSet(new EscalationRef(escalationRefValue)));
return mockNode(event);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.escalation.EscalationEventExecutionSet in project kie-wb-common by kiegroup.
the class IntermediateThrowEventConverterTest method createIntermediateEscalationEventThrowingNode.
private Node createIntermediateEscalationEventThrowingNode() {
EscalationEventExecutionSet executionSet = new EscalationEventExecutionSet(escalationRef);
IntermediateEscalationEventThrowing eventThrowing = new IntermediateEscalationEventThrowing(generalSet, mock(BackgroundSet.class), mock(FontSet.class), mock(CircleDimensionSet.class), dataIOSet, advancedData, executionSet);
Node dockNode = mockNode();
Node node = mockDockedNode(dockNode, eventThrowing);
return node;
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.escalation.EscalationEventExecutionSet in project kie-wb-common by kiegroup.
the class HashCodeAndEqualityTest method testEscalationEventExecutionSetEqualsAndHashCode.
@Test
public void testEscalationEventExecutionSetEqualsAndHashCode() {
String ESCALATION_REF = "ESCALATION_REF";
String ESCALATION_REF_1 = "ESCALATION_REF_1";
TestCaseBuilder.newTestCase().addTrueCase(new EscalationEventExecutionSet(), new EscalationEventExecutionSet()).addTrueCase(new EscalationEventExecutionSet(new EscalationRef()), new EscalationEventExecutionSet(new EscalationRef())).addTrueCase(new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF)), new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF))).addFalseCase(new EscalationEventExecutionSet(), null).addFalseCase(new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF)), new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF_1))).test();
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.escalation.EscalationEventExecutionSet in project kie-wb-common by kiegroup.
the class HashCodeAndEqualityTest method testIntermediateEscalationThrowingEventEqualsAndHashCode.
@Test
public void testIntermediateEscalationThrowingEventEqualsAndHashCode() {
String ESCALATION_REF = "ESCALATION_REF";
String ESCALATION_REF_1 = "ESCALATION_REF_1";
TestCaseBuilder.newTestCase().addTrueCase(new IntermediateEscalationEventThrowing(), new IntermediateEscalationEventThrowing()).addTrueCase(new IntermediateEscalationEventThrowing(new BPMNGeneralSet(), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet()), new IntermediateEscalationEventThrowing(new BPMNGeneralSet(), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet())).addFalseCase(new IntermediateEscalationEventThrowing(), null).addTrueCase(new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet()), new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet())).addTrueCase(new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF))), new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF)))).addFalseCase(new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF))), new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name1", "doc1"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF)))).addFalseCase(new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF))), new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF_1)))).addFalseCase(new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF))), new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet(null))).addFalseCase(new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), new EscalationEventExecutionSet(new EscalationRef(ESCALATION_REF))), new IntermediateEscalationEventThrowing(new BPMNGeneralSet("name", "doc"), new BackgroundSet(), new FontSet(), new CircleDimensionSet(), new DataIOSet(), new AdvancedData(), null)).test();
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.escalation.EscalationEventExecutionSet in project kie-wb-common by kiegroup.
the class ProcessEscalationRefProviderTest method mockEndEscalationEventNode.
private Node mockEndEscalationEventNode(String escalationRefValue) {
EndEscalationEvent event = new EndEscalationEvent();
event.setExecutionSet(new EscalationEventExecutionSet(new EscalationRef(escalationRefValue)));
return mockNode(event);
}
Aggregations