use of org.guvnor.ala.pipeline.execution.impl.PipelineExecutorTraceImpl in project kie-wb-common by kiegroup.
the class PipelineExecutorTraceImplMarshallerTest method testUnMarshall.
@Override
public void testUnMarshall() throws Exception {
PipelineExecutorTraceImpl result = marshaller.unmarshal(getMarshalledValue());
PipelineExecutorTraceImpl expectedValue = getValue();
assertEqualsPipelineExecutorTrace(expectedValue, result);
}
use of org.guvnor.ala.pipeline.execution.impl.PipelineExecutorTraceImpl in project kie-wb-common by kiegroup.
the class PipelineExecutorTraceImplMarshallerTest method getValue.
@Override
public PipelineExecutorTraceImpl getValue() {
// only the stage names are used by the taskDef, so the pipeline can be mocked.
List<Stage> stages = mockStages(STAGE_COUNT);
Pipeline pipeline = new BasePipeline(PIPELINE_NAME, stages) {
};
Input input = mockInput(PIPELINE_INPUT_SIZE);
PipelineExecutorTaskDefImpl taskDef = new PipelineExecutorTaskDefImpl(pipeline, input);
PipelineExecutorTaskImpl taskImpl = new PipelineExecutorTaskImpl(taskDef, PIPELINE_EXECUTION_ID);
taskImpl.setPipelineStatus(PipelineExecutorTask.Status.SCHEDULED);
taskImpl.setPipelineError(mockError(PIPELINE_ERROR, PIPELINE_ERROR_DETAIL));
taskImpl.getTaskDef().getStages().forEach(stage -> taskImpl.setStageError(stage, mockStageError(stage)));
taskImpl.setOutput(new MockPipelineOutput(PIPELINE_OUTPUT));
return new PipelineExecutorTraceImpl(taskImpl);
}
Aggregations