@Test public void enrichEmpty() { new Expectations() {{ context.getConfiguration(); result = new Configuration.Builder() .processorConfig(ProcessorConfig.EMPTY) .build(); }}; EnricherManager manager = new EnricherManager(null, context, Optional.empty()); KubernetesListBuilder builder = new KubernetesListBuilder(); manager.enrich(PlatformMode.kubernetes, builder); assertEquals(0,builder.build().getItems().size(),1); }
public void enrich(PlatformMode platformMode, KubernetesListBuilder builder) { enrich(platformMode, defaultEnricherConfig, builder); }
EnricherManager { public void enrich(PlatformMode platformMode, KubernetesListBuilder builder) { enrich(platformMode, defaultEnricherConfig, builder); } }
EnricherManager { public void enrich(PlatformMode platformMode, KubernetesListBuilder builder) { enrich(platformMode, defaultEnricherConfig, builder); } EnricherManager(ResourceConfig resourceConfig, EnricherContext enricherContext, Optional<List<String>> extraClasspathElements); }
EnricherManager { public void enrich(PlatformMode platformMode, KubernetesListBuilder builder) { enrich(platformMode, defaultEnricherConfig, builder); } EnricherManager(ResourceConfig resourceConfig, EnricherContext enricherContext, Optional<List<String>> extraClasspathElements); void createDefaultResources(PlatformMode platformMode, final KubernetesListBuilder builder); void createDefaultResources(PlatformMode platformMode, ProcessorConfig enricherConfig, final KubernetesListBuilder builder); void enrich(PlatformMode platformMode, KubernetesListBuilder builder); void enrich(PlatformMode platformMode, final ProcessorConfig enricherConfig, final KubernetesListBuilder builder); }
EnricherManager { public void enrich(PlatformMode platformMode, KubernetesListBuilder builder) { enrich(platformMode, defaultEnricherConfig, builder); } EnricherManager(ResourceConfig resourceConfig, EnricherContext enricherContext, Optional<List<String>> extraClasspathElements); void createDefaultResources(PlatformMode platformMode, final KubernetesListBuilder builder); void createDefaultResources(PlatformMode platformMode, ProcessorConfig enricherConfig, final KubernetesListBuilder builder); void enrich(PlatformMode platformMode, KubernetesListBuilder builder); void enrich(PlatformMode platformMode, final ProcessorConfig enricherConfig, final KubernetesListBuilder builder);  }