@Test public void merge_EMPTY() { Map<String, List<String>> highlightFragments = Maps.newHashMap(); String actualMerged = highlightFragmentsMerger.merge(highlightFragments, JudgmentIndexField.CONTENT); assertEquals(StringUtils.EMPTY, actualMerged); }
public String merge(Map<String, List<String>> highlightedData, F field) { List<String> fieldHighlightedData = fetchFieldHighlightedData(highlightedData, field); return fieldHighlightedData.stream() .collect(Collectors.joining(FRAGMENTS_DELIMITER)); }
SolrHighlightFragmentsMerger { public String merge(Map<String, List<String>> highlightedData, F field) { List<String> fieldHighlightedData = fetchFieldHighlightedData(highlightedData, field); return fieldHighlightedData.stream() .collect(Collectors.joining(FRAGMENTS_DELIMITER)); } }
SolrHighlightFragmentsMerger { public String merge(Map<String, List<String>> highlightedData, F field) { List<String> fieldHighlightedData = fetchFieldHighlightedData(highlightedData, field); return fieldHighlightedData.stream() .collect(Collectors.joining(FRAGMENTS_DELIMITER)); }  }
SolrHighlightFragmentsMerger { public String merge(Map<String, List<String>> highlightedData, F field) { List<String> fieldHighlightedData = fetchFieldHighlightedData(highlightedData, field); return fieldHighlightedData.stream() .collect(Collectors.joining(FRAGMENTS_DELIMITER)); }  String merge(Map<String, List<String>> highlightedData, F field); }
SolrHighlightFragmentsMerger { public String merge(Map<String, List<String>> highlightedData, F field) { List<String> fieldHighlightedData = fetchFieldHighlightedData(highlightedData, field); return fieldHighlightedData.stream() .collect(Collectors.joining(FRAGMENTS_DELIMITER)); }  String merge(Map<String, List<String>> highlightedData, F field);  }