@Test(expected=NameMismatchException.class) public void testEqualizeNameComponentsTaxon_03() throws NameMismatchException { ScientificName name = new ScientificName(); name.setGenusOrMonomial("Larus"); name.setSpecificEpithet("argentatus"); name.setInfraspecificEpithet("argentatus"); name.setSubgenus("testSubGenus"); DefaultClassification classification = new DefaultClassification(); classification.setSubgenus("test"); classification.setSpecificEpithet("randaomSpEp"); classification.setInfraspecificEpithet("randomINSpEp"); classification.setGenus("Rosa"); Taxon taxon = new Taxon(); taxon.setAcceptedName(name); taxon.setDefaultClassification(classification); TransformUtil.equalizeNameComponents(taxon); }
public static void equalizeNameComponents(Taxon taxon) throws NameMismatchException { equalizeNameComponents(taxon.getDefaultClassification(), taxon.getAcceptedName()); }
TransformUtil { public static void equalizeNameComponents(Taxon taxon) throws NameMismatchException { equalizeNameComponents(taxon.getDefaultClassification(), taxon.getAcceptedName()); } }
TransformUtil { public static void equalizeNameComponents(Taxon taxon) throws NameMismatchException { equalizeNameComponents(taxon.getDefaultClassification(), taxon.getAcceptedName()); }  }
TransformUtil { public static void equalizeNameComponents(Taxon taxon) throws NameMismatchException { equalizeNameComponents(taxon.getDefaultClassification(), taxon.getAcceptedName()); }  static void setScientificNameGroup(ScientificName sn); static DefaultClassification extractClassificiationFromName(ScientificName sn); static List<Monomial> getMonomialsInName(ScientificName sn); static ScientificName extractNameFromClassification(DefaultClassification dc); static void equalizeNameComponents(Taxon taxon); static void equalizeNameComponents(Specimen specimen); static void equalizeNameComponents(MultiMediaObject mmo); static void sortIdentificationsPreferredFirst(Specimen specimen); static List<Monomial> getSystemClassification(Element elem, ScientificName sn); static String guessMimeType(String imageUrl); }
TransformUtil { public static void equalizeNameComponents(Taxon taxon) throws NameMismatchException { equalizeNameComponents(taxon.getDefaultClassification(), taxon.getAcceptedName()); }  static void setScientificNameGroup(ScientificName sn); static DefaultClassification extractClassificiationFromName(ScientificName sn); static List<Monomial> getMonomialsInName(ScientificName sn); static ScientificName extractNameFromClassification(DefaultClassification dc); static void equalizeNameComponents(Taxon taxon); static void equalizeNameComponents(Specimen specimen); static void equalizeNameComponents(MultiMediaObject mmo); static void sortIdentificationsPreferredFirst(Specimen specimen); static List<Monomial> getSystemClassification(Element elem, ScientificName sn); static String guessMimeType(String imageUrl);  }