@Test public void testCopyScientificName() { ScientificName scientificName = new ScientificName(); scientificName.setFullScientificName("Bombus affinis Cresson, 1863"); scientificName.setScientificNameGroup("bombus affinis"); scientificName.setAuthorshipVerbatim("Cresson, 1863"); scientificName.setGenusOrMonomial("Larus"); scientificName.setSpecificEpithet("affinis"); scientificName.setInfraspecificEpithet(""); scientificName.setTaxonomicStatus(TaxonomicStatus.ACCEPTED_NAME); SummaryScientificName actual = SummaryObjectUtil.copyScientificName(scientificName); assertEquals("01", "Bombus affinis Cresson, 1863", actual.getFullScientificName()); assertEquals("02", "accepted name", actual.getTaxonomicStatus().toString()); assertEquals("03", "Larus", actual.getGenusOrMonomial()); assertEquals("04", "affinis", actual.getSpecificEpithet()); assertEquals("05", "Cresson, 1863", actual.getAuthorshipVerbatim()); }
public static SummaryScientificName copyScientificName(ScientificName sn) { SummaryScientificName ssn = new SummaryScientificName(); ssn.setAuthorshipVerbatim(sn.getAuthorshipVerbatim()); ssn.setFullScientificName(sn.getFullScientificName()); ssn.setGenusOrMonomial(sn.getGenusOrMonomial()); ssn.setInfraspecificEpithet(sn.getInfraspecificEpithet()); ssn.setSpecificEpithet(sn.getSpecificEpithet()); ssn.setSubgenus(sn.getSubgenus()); ssn.setTaxonomicStatus(sn.getTaxonomicStatus()); return ssn; }
SummaryObjectUtil { public static SummaryScientificName copyScientificName(ScientificName sn) { SummaryScientificName ssn = new SummaryScientificName(); ssn.setAuthorshipVerbatim(sn.getAuthorshipVerbatim()); ssn.setFullScientificName(sn.getFullScientificName()); ssn.setGenusOrMonomial(sn.getGenusOrMonomial()); ssn.setInfraspecificEpithet(sn.getInfraspecificEpithet()); ssn.setSpecificEpithet(sn.getSpecificEpithet()); ssn.setSubgenus(sn.getSubgenus()); ssn.setTaxonomicStatus(sn.getTaxonomicStatus()); return ssn; } }
SummaryObjectUtil { public static SummaryScientificName copyScientificName(ScientificName sn) { SummaryScientificName ssn = new SummaryScientificName(); ssn.setAuthorshipVerbatim(sn.getAuthorshipVerbatim()); ssn.setFullScientificName(sn.getFullScientificName()); ssn.setGenusOrMonomial(sn.getGenusOrMonomial()); ssn.setInfraspecificEpithet(sn.getInfraspecificEpithet()); ssn.setSpecificEpithet(sn.getSpecificEpithet()); ssn.setSubgenus(sn.getSubgenus()); ssn.setTaxonomicStatus(sn.getTaxonomicStatus()); return ssn; } private  SummaryObjectUtil(); }
SummaryObjectUtil { public static SummaryScientificName copyScientificName(ScientificName sn) { SummaryScientificName ssn = new SummaryScientificName(); ssn.setAuthorshipVerbatim(sn.getAuthorshipVerbatim()); ssn.setFullScientificName(sn.getFullScientificName()); ssn.setGenusOrMonomial(sn.getGenusOrMonomial()); ssn.setInfraspecificEpithet(sn.getInfraspecificEpithet()); ssn.setSpecificEpithet(sn.getSpecificEpithet()); ssn.setSubgenus(sn.getSubgenus()); ssn.setTaxonomicStatus(sn.getTaxonomicStatus()); return ssn; } 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 SummaryScientificName copyScientificName(ScientificName sn) { SummaryScientificName ssn = new SummaryScientificName(); ssn.setAuthorshipVerbatim(sn.getAuthorshipVerbatim()); ssn.setFullScientificName(sn.getFullScientificName()); ssn.setGenusOrMonomial(sn.getGenusOrMonomial()); ssn.setInfraspecificEpithet(sn.getInfraspecificEpithet()); ssn.setSpecificEpithet(sn.getSpecificEpithet()); ssn.setSubgenus(sn.getSubgenus()); ssn.setTaxonomicStatus(sn.getTaxonomicStatus()); return ssn; } 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);  }