use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventCatching in project kie-wb-common by kiegroup.
the class CatchingIntermediateEventFilterProviderTest method testFilterProviderShowCancelActivityField.
@Test
public void testFilterProviderShowCancelActivityField() {
BaseCatchingIntermediateEvent[] testedClasses = { new IntermediateTimerEvent(), new IntermediateConditionalEvent(), new IntermediateSignalEventCatching(), new IntermediateTimerEvent(), new IntermediateMessageEventCatching() };
when(graphIndex.getNode(UUID)).thenReturn(dockedNode);
Stream.of(testedClasses).forEach(catchingIntermediateEvent -> testFilterProviderShowCancelActivityField(catchingIntermediateEvent));
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventCatching in project kie-wb-common by kiegroup.
the class CatchingIntermediateEventFilterProviderTest method testFilterProviderDontShowCancelActivityField.
@Test
public void testFilterProviderDontShowCancelActivityField() {
BaseCatchingIntermediateEvent[] test1Classes = { new IntermediateTimerEvent(), new IntermediateErrorEventCatching(), new IntermediateConditionalEvent(), new IntermediateCompensationEvent(), new IntermediateSignalEventCatching(), new IntermediateTimerEvent(), new IntermediateMessageEventCatching() };
when(graphIndex.getNode(UUID)).thenReturn(noDockedNode);
Stream.of(test1Classes).forEach(catchingIntermediateEvent -> testFilterProviderDontShowCancelActivityField(catchingIntermediateEvent));
BaseCatchingIntermediateEvent[] test2Classes = { new IntermediateErrorEventCatching(), new IntermediateCompensationEvent() };
when(graphIndex.getNode(UUID)).thenReturn(dockedNode);
Stream.of(test2Classes).forEach(clazz -> testFilterProviderDontShowCancelActivityField(clazz));
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventCatching in project kie-wb-common by kiegroup.
the class VariableUtilsTest method mockIntermediateSignalEventCatching.
private IntermediateSignalEventCatching mockIntermediateSignalEventCatching(String name, String assignmentsInfoValue) {
IntermediateSignalEventCatching result = mockCatchingEvent(name, IntermediateSignalEventCatching.class);
AssignmentsInfo assignmentsInfo = mockAssignmentsInfo(assignmentsInfoValue);
DataIOSet dataIOSet = mockIOSet(assignmentsInfo);
when(result.getDataIOSet()).thenReturn(dataIOSet);
return result;
}
Aggregations