use of org.kie.workbench.common.stunner.bpmn.definition.property.task.IsMultipleInstance in project kie-wb-common by kiegroup.
the class SubprocessViewHandlerTest method prepareReusableSubprocessTest.
private void prepareReusableSubprocessTest(boolean multipleInstance, boolean sequential) {
ReusableSubprocess subProcess = mock(ReusableSubprocess.class);
ReusableSubprocessTaskExecutionSet executionSet = mock(ReusableSubprocessTaskExecutionSet.class);
IsMultipleInstance isMultipleInstance = new IsMultipleInstance(multipleInstance);
MultipleInstanceExecutionMode executionMode = new MultipleInstanceExecutionMode(sequential);
when(executionSet.getIsMultipleInstance()).thenReturn(isMultipleInstance);
when(executionSet.getMultipleInstanceExecutionMode()).thenReturn(executionMode);
when(subProcess.getExecutionSet()).thenReturn(executionSet);
viewHandler.handle(subProcess, svgShapeView);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.task.IsMultipleInstance in project kie-wb-common by kiegroup.
the class SubprocessViewHandlerTest method prepareMISubProcessTest.
private void prepareMISubProcessTest(boolean multipleInstance, boolean sequential) {
MultipleInstanceSubprocess subProcess = mock(MultipleInstanceSubprocess.class);
MultipleInstanceSubprocessTaskExecutionSet executionSet = mock(MultipleInstanceSubprocessTaskExecutionSet.class);
IsMultipleInstance isMultipleInstance = new IsMultipleInstance(multipleInstance);
MultipleInstanceExecutionMode executionMode = new MultipleInstanceExecutionMode(sequential);
when(executionSet.getIsMultipleInstance()).thenReturn(isMultipleInstance);
when(executionSet.getMultipleInstanceExecutionMode()).thenReturn(executionMode);
when(subProcess.getExecutionSet()).thenReturn(executionSet);
viewHandler.handle(subProcess, svgShapeView);
}
Aggregations