use of org.eol.globi.taxon.GlobalNamesService in project eol-globi-data by jhpoelen.
the class GlobalNamesServiceTest method lookupWoRMSCod.
@Test
public void lookupWoRMSCod() throws PropertyEnricherException {
GlobalNamesService service = new GlobalNamesService(GlobalNamesSources.WORMS);
HashMap<String, String> props1 = new HashMap<String, String>();
props1.put(PropertyAndValueDictionary.NAME, "Gadus morhua");
Map<String, String> enrich = service.enrich(props1);
assertThat(enrich.get(PropertyAndValueDictionary.PATH), containsString("Gadiformes | Gadidae | Gadus | Gadus morhua"));
assertThat(enrich.get(PropertyAndValueDictionary.COMMON_NAMES), is(nullValue()));
}
Aggregations