use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateConditionalEvent in project kie-wb-common by kiegroup.
the class IntermediateCatchEventConverterTest method conditionalEvent.
@Test
public void conditionalEvent() {
IntermediateConditionalEvent definition = mock(IntermediateConditionalEvent.class);
ConditionalEventDefinition eventDefinition = mock(ConditionalEventDefinition.class);
CatchEvent catchEvent = mockIntermediateCatchEvent(definition);
tested.conditionalEvent(catchEvent, eventDefinition);
verifyCommonProperties(definition);
verify(propertyReader).isCancelActivity();
verify(propertyReader).getSlaDueDate();
verify(eventDefinition).getCondition();
verify(definition).setExecutionSet(Mockito.<CancellingConditionalEventExecutionSet>any());
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateConditionalEvent in project kie-wb-common by kiegroup.
the class EventCancelActivityViewHandlerTest method testHandleConditionalIsNotCancel.
@Test
@SuppressWarnings("unchecked")
public void testHandleConditionalIsNotCancel() {
final IntermediateConditionalEvent bean = new IntermediateConditionalEvent();
bean.getExecutionSet().getCancelActivity().setValue(false);
tested.handle(bean, view);
verify(prim1).setFillAlpha(eq(0d));
verify(prim1).setStrokeAlpha(eq(1d));
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateConditionalEvent in project kie-wb-common by kiegroup.
the class EventCancelActivityViewHandlerTest method testHandleConditionalIsCancel.
@Test
@SuppressWarnings("unchecked")
public void testHandleConditionalIsCancel() {
final IntermediateConditionalEvent bean = new IntermediateConditionalEvent();
bean.getExecutionSet().getCancelActivity().setValue(true);
tested.handle(bean, view);
verify(prim1).setFillAlpha(eq(1d));
verify(prim1).setStrokeAlpha(eq(0d));
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateConditionalEvent in project kie-wb-common by kiegroup.
the class IntermediateCatchEventConverterTest method createIntermediateConditionalEventCatchingNode.
private Node createIntermediateConditionalEventCatchingNode() {
CancellingConditionalEventExecutionSet executionSet = new CancellingConditionalEventExecutionSet(new CancelActivity(CANCEL_ACTIVITY), slaDueDate, conditionExpression);
IntermediateConditionalEvent eventCatching = new IntermediateConditionalEvent(generalSet, mock(BackgroundSet.class), mock(FontSet.class), mock(CircleDimensionSet.class), dataIOSet, advancedData, executionSet);
Node dockNode = mockNode();
Node node = mockDockedNode(dockNode, eventCatching);
return node;
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateConditionalEvent in project kie-wb-common by kiegroup.
the class ProcessCompensationRefProviderTest method testGetSelectorDataLevel0ZeroTasks.
@Test
public void testGetSelectorDataLevel0ZeroTasks() {
TestingGraphInstanceBuilder2.Level0Graph graph = buildLevel0Graph(graphTestHandler, new TestingGraphInstanceBuilder2.Level0Graph(), new StartNoneEvent(), new IntermediateCompensationEvent(), new IntermediateConditionalEvent(), new EndNoneEvent());
testGetSelectorData(graph.level0Node2, expectedNodes());
}
Aggregations