use of org.guvnor.ala.ui.events.PipelineStatusChangeEvent in project kie-wb-common by kiegroup.
the class PipelineExecutionListenerTest method testAfterPipelineExecution.
@Test
public void testAfterPipelineExecution() {
listener.afterPipelineExecution(new AfterPipelineExecutionEvent(EXECUTION_ID, pipeline));
verify(pipelineStatusChangeEvent, times(1)).fire(new PipelineStatusChangeEvent(traceKey, PipelineStatus.FINISHED));
}
use of org.guvnor.ala.ui.events.PipelineStatusChangeEvent in project kie-wb-common by kiegroup.
the class PipelineExecutionListenerTest method testOnPipelineError.
@Test
public void testOnPipelineError() {
listener.onPipelineError(new OnErrorPipelineExecutionEvent(EXECUTION_ID, pipeline, stage, throwable));
verify(pipelineStatusChangeEvent, times(1)).fire(new PipelineStatusChangeEvent(traceKey, PipelineStatus.ERROR));
}
use of org.guvnor.ala.ui.events.PipelineStatusChangeEvent in project kie-wb-common by kiegroup.
the class RuntimePresenterSetupsTest method testOnPipelineStatusChange.
@Test
public void testOnPipelineStatusChange() {
preparePipelineExecutionTraceSetup();
RuntimeListItem item = new RuntimeListItem(RUNTIME_NAME, trace);
// setup the presenter.
presenter.setup(item);
// the pipeline finishes
presenter.onPipelineStatusChange(new PipelineStatusChangeEvent(trace.getKey(), PipelineStatus.FINISHED));
verify(view, times(1)).setStatus(RuntimePresenterHelper.buildIconStyle(PipelineStatus.FINISHED));
}
use of org.guvnor.ala.ui.events.PipelineStatusChangeEvent in project kie-wb-common by kiegroup.
the class PipelineExecutionListenerTest method testBeforePipelineExecution.
@Test
public void testBeforePipelineExecution() {
listener.beforePipelineExecution(new BeforePipelineExecutionEvent(EXECUTION_ID, pipeline));
verify(pipelineStatusChangeEvent, times(1)).fire(new PipelineStatusChangeEvent(traceKey, PipelineStatus.RUNNING));
}
Aggregations