@Override public String runPipeline(String id, Input input, boolean async) throws BusinessException { return pipelineService.runPipeline(id, input, async); }
private void testRunPipeline(boolean async) { Input input = mock(Input.class); when(pipelineService.runPipeline(PIPELINE_NAME, input, async)).thenReturn(PIPELINE_EXECUTION_ID); String result = pipelineServiceBackend.runPipeline(PIPELINE_NAME, input, async); verify(pipelineService, times(1)).runPipeline(PIPELINE_NAME, input, async); assertEquals(PIPELINE_EXECUTION_ID, result); }
gitUrl); pipelineService.runPipeline("mypipe", input, false);
gitUrl); String pipelineExecutionId = pipelineService.runPipeline("mypipe", input, false); pipelineExecutionId = pipelineService.runPipeline("mypipe", input, true);