@Test public void testGetPipelineByName() { verifyPipelineIsNotRegistered(pipeline); pipelineRegistry.registerPipeline(pipeline); Pipeline result = pipelineRegistry.getPipelineByName(PIPELINE_ID); assertEquals(pipeline, result); }
@Override public Pipeline getPipelineByName(final String pipelineId) { checkNotNull("pipelineId", pipelineId); return pipelineByName.get(pipelineId).getPipeline(); }
InMemoryPipelineRegistry implements PipelineRegistry { @Override public Pipeline getPipelineByName(final String pipelineId) { checkNotNull("pipelineId", pipelineId); return pipelineByName.get(pipelineId).getPipeline(); } }
InMemoryPipelineRegistry implements PipelineRegistry { @Override public Pipeline getPipelineByName(final String pipelineId) { checkNotNull("pipelineId", pipelineId); return pipelineByName.get(pipelineId).getPipeline(); } InMemoryPipelineRegistry(); }
InMemoryPipelineRegistry implements PipelineRegistry { @Override public Pipeline getPipelineByName(final String pipelineId) { checkNotNull("pipelineId", pipelineId); return pipelineByName.get(pipelineId).getPipeline(); } InMemoryPipelineRegistry(); @Override void registerPipeline(final Pipeline pipeline); @Override void registerPipeline(final Pipeline pipeline,
                                 final ProviderType providerType); @Override Pipeline getPipelineByName(final String pipelineId); @Override List<Pipeline> getPipelines(final int page,
                                       final int pageSize,
                                       final String sort,
                                       final boolean sortOrder); @Override List<Pipeline> getPipelines(final String providerType,
                                       final String version,
                                       final int page,
                                       final int pageSize,
                                       final String sort,
                                       final boolean sortOrder); @Override ProviderType getProviderType(final String pipelineId); }
InMemoryPipelineRegistry implements PipelineRegistry { @Override public Pipeline getPipelineByName(final String pipelineId) { checkNotNull("pipelineId", pipelineId); return pipelineByName.get(pipelineId).getPipeline(); } InMemoryPipelineRegistry(); @Override void registerPipeline(final Pipeline pipeline); @Override void registerPipeline(final Pipeline pipeline,
                                 final ProviderType providerType); @Override Pipeline getPipelineByName(final String pipelineId); @Override List<Pipeline> getPipelines(final int page,
                                       final int pageSize,
                                       final String sort,
                                       final boolean sortOrder); @Override List<Pipeline> getPipelines(final String providerType,
                                       final String version,
                                       final int page,
                                       final int pageSize,
                                       final String sort,
                                       final boolean sortOrder); @Override ProviderType getProviderType(final String pipelineId);  }