@Test public void testGetAllValues() { final List<BuiltinAggregator> builtinAggregators = builtinAggregatorUtils.getAllValues(); assertThat(builtinAggregators.size()).isEqualTo(BuiltinAggregator.values().length + 1); assertThat(builtinAggregators.get(0)).isNull(); assertThat(builtinAggregators.subList(1, builtinAggregators.size())).containsOnly(BuiltinAggregator.values()); }
public List<BuiltinAggregator> getAllValues() { final List<BuiltinAggregator> builtinAggregators = new ArrayList<>(); builtinAggregators.add(null); builtinAggregators.addAll(Arrays.asList(BuiltinAggregator.values())); return builtinAggregators; }
BuiltinAggregatorUtils { public List<BuiltinAggregator> getAllValues() { final List<BuiltinAggregator> builtinAggregators = new ArrayList<>(); builtinAggregators.add(null); builtinAggregators.addAll(Arrays.asList(BuiltinAggregator.values())); return builtinAggregators; } }
BuiltinAggregatorUtils { public List<BuiltinAggregator> getAllValues() { final List<BuiltinAggregator> builtinAggregators = new ArrayList<>(); builtinAggregators.add(null); builtinAggregators.addAll(Arrays.asList(BuiltinAggregator.values())); return builtinAggregators; } BuiltinAggregatorUtils(); @Inject  BuiltinAggregatorUtils(final TranslationService translationService); }
BuiltinAggregatorUtils { public List<BuiltinAggregator> getAllValues() { final List<BuiltinAggregator> builtinAggregators = new ArrayList<>(); builtinAggregators.add(null); builtinAggregators.addAll(Arrays.asList(BuiltinAggregator.values())); return builtinAggregators; } BuiltinAggregatorUtils(); @Inject  BuiltinAggregatorUtils(final TranslationService translationService); List<BuiltinAggregator> getAllValues(); String toString(final BuiltinAggregator aggregator); BuiltinAggregator toEnum(final String value); }
BuiltinAggregatorUtils { public List<BuiltinAggregator> getAllValues() { final List<BuiltinAggregator> builtinAggregators = new ArrayList<>(); builtinAggregators.add(null); builtinAggregators.addAll(Arrays.asList(BuiltinAggregator.values())); return builtinAggregators; } BuiltinAggregatorUtils(); @Inject  BuiltinAggregatorUtils(final TranslationService translationService); List<BuiltinAggregator> getAllValues(); String toString(final BuiltinAggregator aggregator); BuiltinAggregator toEnum(final String value);  }