@Test public void testInitAggregator() throws Exception { final List<BuiltinAggregator> aggregators = builtinAggregatorUtils.getAllValues(); view.initBuiltinAggregators(aggregators); aggregators.stream().forEach(agg -> verify(lstBuiltinAggregator).addOption(builtinAggregatorUtils.toString(agg))); }
@Override public void initBuiltinAggregators(final List<BuiltinAggregator> aggregators) { aggregators.forEach(a -> lstBuiltinAggregator.addOption(builtinAggregatorUtils.toString(a))); }
HitPolicyPopoverViewImpl extends AbstractPopoverViewImpl implements HitPolicyPopoverView { @Override public void initBuiltinAggregators(final List<BuiltinAggregator> aggregators) { aggregators.forEach(a -> lstBuiltinAggregator.addOption(builtinAggregatorUtils.toString(a))); } }
HitPolicyPopoverViewImpl extends AbstractPopoverViewImpl implements HitPolicyPopoverView { @Override public void initBuiltinAggregators(final List<BuiltinAggregator> aggregators) { aggregators.forEach(a -> lstBuiltinAggregator.addOption(builtinAggregatorUtils.toString(a))); } HitPolicyPopoverViewImpl(); @Inject  HitPolicyPopoverViewImpl(final Select lstHitPolicies,
                                    final Select lstBuiltinAggregator,
                                    final BuiltinAggregatorUtils builtinAggregatorUtils,
                                    final Div popoverElement,
                                    final Div popoverContentElement,
                                    final Span hitPolicyLabel,
                                    final Span builtinAggregatorLabel,
                                    final JQueryProducer.JQuery<Popover> jQueryPopover,
                                    final TranslationService translationService); }
HitPolicyPopoverViewImpl extends AbstractPopoverViewImpl implements HitPolicyPopoverView { @Override public void initBuiltinAggregators(final List<BuiltinAggregator> aggregators) { aggregators.forEach(a -> lstBuiltinAggregator.addOption(builtinAggregatorUtils.toString(a))); } HitPolicyPopoverViewImpl(); @Inject  HitPolicyPopoverViewImpl(final Select lstHitPolicies,
                                    final Select lstBuiltinAggregator,
                                    final BuiltinAggregatorUtils builtinAggregatorUtils,
                                    final Div popoverElement,
                                    final Div popoverContentElement,
                                    final Span hitPolicyLabel,
                                    final Span builtinAggregatorLabel,
                                    final JQueryProducer.JQuery<Popover> jQueryPopover,
                                    final TranslationService translationService); @Override void init(final HitPolicyPopoverView.Presenter presenter); @Override void initHitPolicies(final List<HitPolicy> hitPolicies); @Override void initBuiltinAggregators(final List<BuiltinAggregator> aggregators); @Override void initSelectedHitPolicy(final HitPolicy hitPolicy); @Override void initSelectedBuiltinAggregator(final BuiltinAggregator aggregator); @Override void enableHitPolicies(final boolean enabled); @Override void enableBuiltinAggregators(final boolean enabled); }
HitPolicyPopoverViewImpl extends AbstractPopoverViewImpl implements HitPolicyPopoverView { @Override public void initBuiltinAggregators(final List<BuiltinAggregator> aggregators) { aggregators.forEach(a -> lstBuiltinAggregator.addOption(builtinAggregatorUtils.toString(a))); } HitPolicyPopoverViewImpl(); @Inject  HitPolicyPopoverViewImpl(final Select lstHitPolicies,
                                    final Select lstBuiltinAggregator,
                                    final BuiltinAggregatorUtils builtinAggregatorUtils,
                                    final Div popoverElement,
                                    final Div popoverContentElement,
                                    final Span hitPolicyLabel,
                                    final Span builtinAggregatorLabel,
                                    final JQueryProducer.JQuery<Popover> jQueryPopover,
                                    final TranslationService translationService); @Override void init(final HitPolicyPopoverView.Presenter presenter); @Override void initHitPolicies(final List<HitPolicy> hitPolicies); @Override void initBuiltinAggregators(final List<BuiltinAggregator> aggregators); @Override void initSelectedHitPolicy(final HitPolicy hitPolicy); @Override void initSelectedBuiltinAggregator(final BuiltinAggregator aggregator); @Override void enableHitPolicies(final boolean enabled); @Override void enableBuiltinAggregators(final boolean enabled);  }