use of org.eclipse.bpmn2.impl.FlowElementImpl in project kie-wb-common by kiegroup.
the class ProcessesTest method setUp.
@Before
public void setUp() {
when(propertyWriter.getRootElements()).thenReturn(propertyWriterRootElements);
when(propertyWriter.getSimulationParameters()).thenReturn(propertyWriterElementParameters);
when(propertyWriter.getItemDefinitions()).thenReturn(propertyWriterItemDefinitions);
when(boundaryEventPropertyWriter.getRootElements()).thenReturn(propertyWriterRootElements);
when(boundaryEventPropertyWriter.getSimulationParameters()).thenReturn(propertyWriterElementParameters);
when(boundaryEventPropertyWriter.getItemDefinitions()).thenReturn(propertyWriterItemDefinitions);
flowElement = new FlowElementImpl() {
};
flowElement.setId(ELEMENT_ID);
artifact = new ArtifactImpl() {
};
artifact.setId(ELEMENT_ID);
when(process.getFlowElements()).thenReturn(flowElements);
when(process.getArtifacts()).thenReturn(artifacts);
when(subProcess.getFlowElements()).thenReturn(flowElements);
when(subProcess.getArtifacts()).thenReturn(artifacts);
}
Aggregations