private void verifyPipelineIsNotRegistered(Pipeline pipeline) { List<Pipeline> pipelines = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, true); assertFalse(pipelines.contains(pipeline)); }
private void verifyPipelineIsRegistered(Pipeline pipeline) { List<Pipeline> pipelines = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, true); assertTrue(pipelines.contains(pipeline)); }
private void verifyPipelineIsNotRegistered(Pipeline pipeline) { List<Pipeline> pipelines = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, true); assertFalse(pipelines.contains(pipeline)); }
private void verifyPipelineIsRegistered(Pipeline pipeline) { List<Pipeline> pipelines = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, true); assertTrue(pipelines.contains(pipeline)); }
private void verifyPipelineIsRegisteredForProviderType(Pipeline pipeline, ProviderType providerType) { List<Pipeline> pipelines = pipelineRegistry.getPipelines(providerType.getProviderTypeName(), providerType.getVersion(), 0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, true); assertTrue(pipelines.contains(pipeline)); }
private void verifyPipelineIsRegisteredForProviderType(Pipeline pipeline, ProviderType providerType) { List<Pipeline> pipelines = pipelineRegistry.getPipelines(providerType.getProviderTypeName(), providerType.getVersion(), 0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, true); assertTrue(pipelines.contains(pipeline)); }
@Test public void testGetPipelines() { List<Pipeline> result = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, true); assertTrue(result.isEmpty()); List<Pipeline> pipelines = mockPipelineList("", ELEMENTS_COUNT); pipelines.forEach(pipeline -> pipelineRegistry.registerPipeline(pipeline)); result = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, true); for (Pipeline pipeline : pipelines) { assertTrue(result.contains(pipeline)); } }
@Test public void testGetPipelines() { List<Pipeline> result = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, true); assertTrue(result.isEmpty()); List<Pipeline> pipelines = mockPipelineList("", ELEMENTS_COUNT); pipelines.forEach(pipeline -> pipelineRegistry.registerPipeline(pipeline)); result = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, true); for (Pipeline pipeline : pipelines) { assertTrue(result.contains(pipeline)); } }
ProviderType providerType2 = mockProviderTypeSPI("providerType2"); List<Pipeline> result = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, providerType2); result = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, assertEquals(3 * ELEMENTS_COUNT, result.size()); result = pipelineRegistry.getPipelines(providerType.getProviderTypeName(), providerType.getVersion(), 0,
ProviderType providerType2 = mockProviderTypeSPI("providerType2"); List<Pipeline> result = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, providerType2); result = pipelineRegistry.getPipelines(0, 1000, PipelineRegistry.PIPELINE_NAME_SORT, assertEquals(3 * ELEMENTS_COUNT, result.size()); result = pipelineRegistry.getPipelines(providerType.getProviderTypeName(), providerType.getVersion(), 0,