use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching in project kie-wb-common by kiegroup.
the class EventCancelActivityViewHandlerTest method testHandleMessageIsCancel.
@Test
@SuppressWarnings("unchecked")
public void testHandleMessageIsCancel() {
final IntermediateMessageEventCatching bean = new IntermediateMessageEventCatching.IntermediateMessageEventCatchingBuilder().build();
bean.getExecutionSet().getCancelActivity().setValue(true);
tested.handle(bean, view);
verify(prim1).setAlpha(eq(1d));
verify(prim2).setAlpha(eq(0d));
}
use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching in project kie-wb-common by kiegroup.
the class EventCancelActivityViewHandlerTest method testHandleMessageIsNotCancel.
@Test
@SuppressWarnings("unchecked")
public void testHandleMessageIsNotCancel() {
final IntermediateMessageEventCatching bean = new IntermediateMessageEventCatching.IntermediateMessageEventCatchingBuilder().build();
bean.getExecutionSet().getCancelActivity().setValue(false);
tested.handle(bean, view);
verify(prim1).setAlpha(eq(0d));
verify(prim2).setAlpha(eq(1d));
}
Aggregations