use of org.guvnor.ala.ui.model.PipelineExecutionTraceKey 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);
}
use of org.guvnor.ala.ui.model.PipelineExecutionTraceKey in project kie-wb-common by kiegroup.
the class RuntimeServiceImplTest method testDeletePipelineExecution.
@Test
public void testDeletePipelineExecution() {
PipelineExecutionTraceKey pipelineExecutionTraceKey = new PipelineExecutionTraceKey(PIPELINE_EXECUTION_ID);
service.deletePipelineExecution(pipelineExecutionTraceKey);
verify(pipelineService, times(1)).deletePipelineExecution(PIPELINE_EXECUTION_ID);
verify(pipelineExecutionChangeEvent, times(1)).fire(new PipelineExecutionChangeEvent(PipelineExecutionChange.DELETED, pipelineExecutionTraceKey));
}
use of org.guvnor.ala.ui.model.PipelineExecutionTraceKey in project kie-wb-common by kiegroup.
the class RuntimeServiceImplTest method getRuntimeItemByPipelineExecutionKeyNotExisting.
@Test
public void getRuntimeItemByPipelineExecutionKeyNotExisting() {
PipelineExecutionTraceKey traceKey = new PipelineExecutionTraceKey(PIPELINE_EXECUTION_ID);
List<RuntimeQueryResultItem> singleResult = new ArrayList<>();
when(runtimeProvisioningService.executeQuery(any(RuntimeQuery.class))).thenReturn(singleResult);
RuntimeListItem result = service.getRuntimeItem(traceKey);
assertNull(result);
}
Aggregations