@Test public void source_groups_are_not_inherited_when_inheritDefaultSources_is_false() throws Exception { FederationFixture f = new ProvidersWithSourceFixture(); FederationSearcher federationSearcherWithoutDefaultSources = newFederationSearcher(false, emptyList()); f.initializeFederationSearcher(federationSearcherWithoutDefaultSources); FederationConfig federationConfig = getConfig(federationSearcherWithoutDefaultSources); assertEquals(0, federationConfig.target().size()); }
@Override public void getConfig(FederationConfig.Builder builder) { for (Target target : resolvedTargets.values()) { builder.target(target.getTargetConfig()); } if (targetSelector.isPresent()) { builder.targetSelector(targetSelector.get().getGlobalComponentId().stringValue()); } }
FederationSearcher extends Searcher<FederationSearcherModel> implements FederationConfig.Producer { @Override public void getConfig(FederationConfig.Builder builder) { for (Target target : resolvedTargets.values()) { builder.target(target.getTargetConfig()); } if (targetSelector.isPresent()) { builder.targetSelector(targetSelector.get().getGlobalComponentId().stringValue()); } } }
FederationSearcher extends Searcher<FederationSearcherModel> implements FederationConfig.Producer { @Override public void getConfig(FederationConfig.Builder builder) { for (Target target : resolvedTargets.values()) { builder.target(target.getTargetConfig()); } if (targetSelector.isPresent()) { builder.targetSelector(targetSelector.get().getGlobalComponentId().stringValue()); } } FederationSearcher(FederationSearcherModel searcherModel, Optional<Component> targetSelector); }
FederationSearcher extends Searcher<FederationSearcherModel> implements FederationConfig.Producer { @Override public void getConfig(FederationConfig.Builder builder) { for (Target target : resolvedTargets.values()) { builder.target(target.getTargetConfig()); } if (targetSelector.isPresent()) { builder.targetSelector(targetSelector.get().getGlobalComponentId().stringValue()); } } FederationSearcher(FederationSearcherModel searcherModel, Optional<Component> targetSelector); @Override void getConfig(FederationConfig.Builder builder); @Override void initialize(); }
FederationSearcher extends Searcher<FederationSearcherModel> implements FederationConfig.Producer { @Override public void getConfig(FederationConfig.Builder builder) { for (Target target : resolvedTargets.values()) { builder.target(target.getTargetConfig()); } if (targetSelector.isPresent()) { builder.targetSelector(targetSelector.get().getGlobalComponentId().stringValue()); } } FederationSearcher(FederationSearcherModel searcherModel, Optional<Component> targetSelector); @Override void getConfig(FederationConfig.Builder builder); @Override void initialize();  }