@Test public void testNewPipeline() { List<PipelineConfigStage> configStages = new ArrayList<>(); for (int i = 0; i < CONFIG_COUNT; i++) { configStages.add(new PipelineConfigStage(mockConfigStageName(i), configs.get(i))); } PipelineConfigImpl pipelineConfig = new PipelineConfigImpl(PIPELINE_NAME, configStages); ConfigBasedPipeline result = PipelineFactory.newPipeline(pipelineConfig); assertPipelineIsTheExpected(result); }
public static ConfigBasedPipeline newPipeline(final PipelineConfig pipelineConfig) { return new ConfigBasedPipelineImpl(pipelineConfig); }
PipelineFactory { public static ConfigBasedPipeline newPipeline(final PipelineConfig pipelineConfig) { return new ConfigBasedPipelineImpl(pipelineConfig); } }
PipelineFactory { public static ConfigBasedPipeline newPipeline(final PipelineConfig pipelineConfig) { return new ConfigBasedPipelineImpl(pipelineConfig); } private  PipelineFactory(); }
PipelineFactory { public static ConfigBasedPipeline newPipeline(final PipelineConfig pipelineConfig) { return new ConfigBasedPipelineImpl(pipelineConfig); } private  PipelineFactory(); static ConfigBasedPipelineBuilder newBuilder(); static ConfigBasedPipeline newPipeline(final PipelineConfig pipelineConfig); }
PipelineFactory { public static ConfigBasedPipeline newPipeline(final PipelineConfig pipelineConfig) { return new ConfigBasedPipelineImpl(pipelineConfig); } private  PipelineFactory(); static ConfigBasedPipelineBuilder newBuilder(); static ConfigBasedPipeline newPipeline(final PipelineConfig pipelineConfig);  }