use of org.guvnor.ala.pipeline.Pipeline in project kie-wb-common by kiegroup.
the class InMemoryPipelineRegistryTest method mockPipelineList.
private static List<Pipeline> mockPipelineList(String suffix, final int count) {
List<Pipeline> pipelines = new ArrayList<>();
for (int i = 0; i < count; i++) {
Pipeline pipeline = mock(Pipeline.class);
when(pipeline.getName()).thenReturn("Pipeline.name." + suffix + Integer.toString(i));
pipelines.add(pipeline);
}
return pipelines;
}
use of org.guvnor.ala.pipeline.Pipeline in project kie-wb-common by kiegroup.
the class PipelineExecutionListenerTest method setUp.
@Before
public void setUp() {
traceKey = new PipelineExecutionTraceKey(EXECUTION_ID);
pipeline = mock(Pipeline.class);
stage = mock(Stage.class);
when(stage.getName()).thenReturn(STAGE_NAME);
throwable = mock(Throwable.class);
listener = new PipelineExecutionListener(pipelineStatusChangeEvent, stageStatusChangeEvent);
}
Aggregations