@Test(expected=NullPointerException.class) public void testEqualizeNameComponentsSpecimen() throws NameMismatchException { ScientificName name = new ScientificName(); name.setGenusOrMonomial("Larus"); name.setSpecificEpithet("argentatus"); name.setInfraspecificEpithet("argentatus"); name.setSubgenus("testSubGenus"); SpecimenIdentification identification = new SpecimenIdentification(); identification.setDefaultClassification(null); identification.setScientificName(name); List<SpecimenIdentification> identifications = new ArrayList<>(); identifications.add(identification); Specimen specimen = new Specimen(); specimen.setIdentifications(identifications);; TransformUtil.equalizeNameComponents(specimen); }
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);  }