@Test public void convertCcJudgmentKeywords_empty_list() { List<JudgmentKeyword> judgmentKeywords = Lists.newArrayList(); List<SimpleKeyword> convertedSimpleKeywords = simpleKeywordConverter.convertJudgmentKeywords(judgmentKeywords); assertNotNull(convertedSimpleKeywords); }
public List<SimpleKeyword> convertJudgmentKeywords(List<JudgmentKeyword> judgmentKeywords) { return judgmentKeywords.stream() .map(judgmentKeyword -> convertFromJudgmentKeyword(judgmentKeyword)) .collect(Collectors.toList()); }
SimpleKeywordConverter { public List<SimpleKeyword> convertJudgmentKeywords(List<JudgmentKeyword> judgmentKeywords) { return judgmentKeywords.stream() .map(judgmentKeyword -> convertFromJudgmentKeyword(judgmentKeyword)) .collect(Collectors.toList()); } }
SimpleKeywordConverter { public List<SimpleKeyword> convertJudgmentKeywords(List<JudgmentKeyword> judgmentKeywords) { return judgmentKeywords.stream() .map(judgmentKeyword -> convertFromJudgmentKeyword(judgmentKeyword)) .collect(Collectors.toList()); }  }
SimpleKeywordConverter { public List<SimpleKeyword> convertJudgmentKeywords(List<JudgmentKeyword> judgmentKeywords) { return judgmentKeywords.stream() .map(judgmentKeyword -> convertFromJudgmentKeyword(judgmentKeyword)) .collect(Collectors.toList()); }  List<SimpleKeyword> convertJudgmentKeywords(List<JudgmentKeyword> judgmentKeywords); }
SimpleKeywordConverter { public List<SimpleKeyword> convertJudgmentKeywords(List<JudgmentKeyword> judgmentKeywords) { return judgmentKeywords.stream() .map(judgmentKeyword -> convertFromJudgmentKeyword(judgmentKeyword)) .collect(Collectors.toList()); }  List<SimpleKeyword> convertJudgmentKeywords(List<JudgmentKeyword> judgmentKeywords);  }