@Test public void testRead() { ModsDefinition mods = new ModsDefinition(); mods.getLanguage().add(language("cze")); mods.getLanguage().add(otherLanguage("other1")); mods.getLanguage().add(language("ger")); LanguageMapper instance = new LanguageMapper(); List<LanguageItem> result = instance.map(mods); List<LanguageItem> expect = Arrays.asList( new LanguageItem(0, "cze"), new LanguageItem(2, "ger") ); assertThat(result, Is.is(expect)); }
public List<LanguageItem> map(ModsDefinition mods) { List<LanguageItem> all = arrayMapper.map(mods.getLanguage()); return filter(all, false); }
LanguageMapper { public List<LanguageItem> map(ModsDefinition mods) { List<LanguageItem> all = arrayMapper.map(mods.getLanguage()); return filter(all, false); } }
LanguageMapper { public List<LanguageItem> map(ModsDefinition mods) { List<LanguageItem> all = arrayMapper.map(mods.getLanguage()); return filter(all, false); }  }
LanguageMapper { public List<LanguageItem> map(ModsDefinition mods) { List<LanguageItem> all = arrayMapper.map(mods.getLanguage()); return filter(all, false); }  List<LanguageItem> map(ModsDefinition mods); ModsDefinition map(ModsDefinition mods, List<LanguageItem> updates); }
LanguageMapper { public List<LanguageItem> map(ModsDefinition mods) { List<LanguageItem> all = arrayMapper.map(mods.getLanguage()); return filter(all, false); }  List<LanguageItem> map(ModsDefinition mods); ModsDefinition map(ModsDefinition mods, List<LanguageItem> updates);  }