Search in sources :

Example 1 with ArtifactImpl

use of org.eclipse.bpmn2.impl.ArtifactImpl 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);
}
Also used : ArtifactImpl(org.eclipse.bpmn2.impl.ArtifactImpl) FlowElementImpl(org.eclipse.bpmn2.impl.FlowElementImpl) Before(org.junit.Before)

Aggregations

ArtifactImpl (org.eclipse.bpmn2.impl.ArtifactImpl)1 FlowElementImpl (org.eclipse.bpmn2.impl.FlowElementImpl)1 Before (org.junit.Before)1