use of org.guvnor.ala.pipeline.execution.PipelineExecutorTrace in project kie-wb-common by kiegroup.
the class InMemoryPipelineExecutorRegistryTest method getExecutorTraceByRuntimeId.
@Test
public void getExecutorTraceByRuntimeId() {
RuntimeIdMock runtimeId = mock(RuntimeIdMock.class);
when(runtimeId.getId()).thenReturn(RUNTIME_ID);
PipelineExecutorTask task = mock(PipelineExecutorTask.class);
when(task.getOutput()).thenReturn(runtimeId);
when(trace.getTask()).thenReturn(task);
pipelineExecutorRegistry.register(trace);
PipelineExecutorTrace result = pipelineExecutorRegistry.getExecutorTrace(runtimeId);
assertEquals(trace, result);
}
use of org.guvnor.ala.pipeline.execution.PipelineExecutorTrace in project kie-wb-common by kiegroup.
the class InMemoryPipelineExecutorRegistryTest method testRegister.
@Test
public void testRegister() {
pipelineExecutorRegistry.register(trace);
PipelineExecutorTrace result = pipelineExecutorRegistry.getExecutorTrace(PIPELINE_EXECUTION_ID);
assertEquals(trace, result);
}
Aggregations