@Test public void testGetProviderType() { ProviderType result = pipelineRegistry.getProviderType(PIPELINE_ID); assertNull(result); pipelineRegistry.registerPipeline(pipeline, providerType); result = pipelineRegistry.getProviderType(PIPELINE_ID); assertEquals(providerType, result); }
@Override public ProviderType getProviderType(final String pipelineId) { checkNotNull("pipelineId", pipelineId); PipelineRegistryEntry entry = pipelineByName.get(pipelineId); return entry != null ? entry.getProviderType() : null; }
InMemoryPipelineRegistry implements PipelineRegistry { @Override public ProviderType getProviderType(final String pipelineId) { checkNotNull("pipelineId", pipelineId); PipelineRegistryEntry entry = pipelineByName.get(pipelineId); return entry != null ? entry.getProviderType() : null; } }
InMemoryPipelineRegistry implements PipelineRegistry { @Override public ProviderType getProviderType(final String pipelineId) { checkNotNull("pipelineId", pipelineId); PipelineRegistryEntry entry = pipelineByName.get(pipelineId); return entry != null ? entry.getProviderType() : null; } InMemoryPipelineRegistry(); }
InMemoryPipelineRegistry implements PipelineRegistry { @Override public ProviderType getProviderType(final String pipelineId) { checkNotNull("pipelineId", pipelineId); PipelineRegistryEntry entry = pipelineByName.get(pipelineId); return entry != null ? entry.getProviderType() : null; } 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 ProviderType getProviderType(final String pipelineId) { checkNotNull("pipelineId", pipelineId); PipelineRegistryEntry entry = pipelineByName.get(pipelineId); return entry != null ? entry.getProviderType() : null; } 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);  }