@Test public void testCopySummaryVernacularName() { Organization org = new Organization(); org.setName("Naturalis"); Expert expert = new Expert(); expert.setAgentText("Test Agent"); expert.setFullName("Plabon Kakoti"); expert.setOrganization(org); List<Expert> expertsList = new ArrayList<>(); expertsList.add(expert); VernacularName vn = new VernacularName(); vn.setName("pinhead"); vn.setLanguage("English"); vn.setExperts(expertsList); vn.setPreferred(true); SummaryVernacularName actual = SummaryObjectUtil.copySummaryVernacularName(vn); assertNotNull("01", actual); assertEquals("02", "pinhead", actual.getName()); assertEquals("03", "English", actual.getLanguage()); }
public static SummaryVernacularName copySummaryVernacularName(VernacularName vn) { SummaryVernacularName svn = new SummaryVernacularName(); svn.setName(vn.getName()); svn.setLanguage(vn.getLanguage()); return svn; }
SummaryObjectUtil { public static SummaryVernacularName copySummaryVernacularName(VernacularName vn) { SummaryVernacularName svn = new SummaryVernacularName(); svn.setName(vn.getName()); svn.setLanguage(vn.getLanguage()); return svn; } }
SummaryObjectUtil { public static SummaryVernacularName copySummaryVernacularName(VernacularName vn) { SummaryVernacularName svn = new SummaryVernacularName(); svn.setName(vn.getName()); svn.setLanguage(vn.getLanguage()); return svn; } private  SummaryObjectUtil(); }
SummaryObjectUtil { public static SummaryVernacularName copySummaryVernacularName(VernacularName vn) { SummaryVernacularName svn = new SummaryVernacularName(); svn.setName(vn.getName()); svn.setLanguage(vn.getLanguage()); return svn; } private  SummaryObjectUtil(); static SummarySpecimen copySpecimen(Specimen specimen, String nameGroup); static SummaryTaxon copyTaxon(Taxon taxon); static SummaryScientificName copyScientificName(ScientificName sn); static SummaryVernacularName copySummaryVernacularName(VernacularName vn); static SummarySourceSystem copySourceSystem(SourceSystem ss); }
SummaryObjectUtil { public static SummaryVernacularName copySummaryVernacularName(VernacularName vn) { SummaryVernacularName svn = new SummaryVernacularName(); svn.setName(vn.getName()); svn.setLanguage(vn.getLanguage()); return svn; } private  SummaryObjectUtil(); static SummarySpecimen copySpecimen(Specimen specimen, String nameGroup); static SummaryTaxon copyTaxon(Taxon taxon); static SummaryScientificName copyScientificName(ScientificName sn); static SummaryVernacularName copySummaryVernacularName(VernacularName vn); static SummarySourceSystem copySourceSystem(SourceSystem ss);  }