@Before public void setUp() { super.setUp(); when(popupHelper.getPopupErrorCallback()).thenReturn(defaultErrorCallback); exceptionCaptor = ArgumentCaptor.forClass(Exception.class); yesCommandCaptor = ArgumentCaptor.forClass(Command.class); noCommandCaptor = ArgumentCaptor.forClass(Command.class); }
protected void preparePipelineExecutionTraceSetup() { Pipeline pipeline = mockPipeline(PIPELINE_NAME, STAGE_NUMBER); trace = mockPipelineExecutionTrace(EXECUTION_ID, pipeline, PipelineStatus.RUNNING, PipelineStatus.SCHEDULED); //set an arbitrary number of consecutive stages as finished and the last as running. displayableStages = new ArrayList<>(); int finishedStages = 5; for (int i = 0; i < finishedStages; i++) { trace.setStageStatus(pipeline.getStages().get(i).getName(), PipelineStatus.FINISHED); displayableStages.add(pipeline.getStages().get(i)); } trace.setStageStatus(pipeline.getStages().get(finishedStages).getName(), PipelineStatus.RUNNING); displayableStages.add(pipeline.getStages().get(finishedStages)); }
protected void preparePipelineExecutionTraceSetup() { Pipeline pipeline = mockPipeline(PIPELINE_NAME, STAGE_NUMBER); trace = mockPipelineExecutionTrace(EXECUTION_ID, pipeline, PipelineStatus.RUNNING, PipelineStatus.SCHEDULED); //set an arbitrary number of consecutive stages as finished and the last as running. displayableStages = new ArrayList<>(); int finishedStages = 5; for (int i = 0; i < finishedStages; i++) { trace.setStageStatus(pipeline.getStages().get(i).getName(), PipelineStatus.FINISHED); displayableStages.add(pipeline.getStages().get(i)); } trace.setStageStatus(pipeline.getStages().get(finishedStages).getName(), PipelineStatus.RUNNING); displayableStages.add(pipeline.getStages().get(finishedStages)); }
@Before public void setUp() { super.setUp(); when(popupHelper.getPopupErrorCallback()).thenReturn(defaultErrorCallback); exceptionCaptor = ArgumentCaptor.forClass(Exception.class); yesCommandCaptor = ArgumentCaptor.forClass(Command.class); noCommandCaptor = ArgumentCaptor.forClass(Command.class); }
@Before public void setUp() { super.setUp(); when(translationService.getTranslation(RuntimePresenter_PipelineExecutionStopAction)).thenReturn(STOP_PIPELINE_ACTION); when(translationService.getTranslation(RuntimePresenter_PipelineExecutionDeleteAction)).thenReturn(DELETE_PIPELINE_ACTION); when(translationService.getTranslation(RuntimePresenter_RuntimeStartAction)).thenReturn(START_RUNTIME_ACTION); when(translationService.getTranslation(RuntimePresenter_RuntimeStopAction)).thenReturn(STOP_RUNTIME_ACTION); when(translationService.getTranslation(RuntimePresenter_RuntimeDeleteAction)).thenReturn(DELETE_RUNTIME_ACTION); }
@Before public void setUp() { super.setUp(); when(translationService.getTranslation(RuntimePresenter_PipelineExecutionStopAction)).thenReturn(STOP_PIPELINE_ACTION); when(translationService.getTranslation(RuntimePresenter_PipelineExecutionDeleteAction)).thenReturn(DELETE_PIPELINE_ACTION); when(translationService.getTranslation(RuntimePresenter_PipelineExecutionShowErrorAction)).thenReturn(SHOW_PIPELINE_ERROR_ACTION); when(translationService.getTranslation(RuntimePresenter_RuntimeStartAction)).thenReturn(START_RUNTIME_ACTION); when(translationService.getTranslation(RuntimePresenter_RuntimeStopAction)).thenReturn(STOP_RUNTIME_ACTION); when(translationService.getTranslation(RuntimePresenter_RuntimeDeleteAction)).thenReturn(DELETE_RUNTIME_ACTION); }