@Test public void appliesExceptions() { assertThat(subject.get("canis lupus").referenceName(), is("canis familiaris")); assertThat(subject.get("Canis_lupus").referenceName(), is("canis familiaris")); assertThat(subject.get("canis_lupus_familiaris").referenceName(), is("canis familiaris")); assertThat(subject.get("Canis_lupus familiaris").referenceName(), is("canis familiaris")); assertThat(subject.get("Canis Lupus Familiaris").referenceName(), is("canis familiaris")); }
public SpeciesProperties get(String speciesName) { SpeciesProperties result = nameToSpecies.get(normalise(speciesName)); return result != null ? result : SpeciesProperties.UNKNOWN; }
SpeciesPropertiesTrader { public SpeciesProperties get(String speciesName) { SpeciesProperties result = nameToSpecies.get(normalise(speciesName)); return result != null ? result : SpeciesProperties.UNKNOWN; } }
SpeciesPropertiesTrader { public SpeciesProperties get(String speciesName) { SpeciesProperties result = nameToSpecies.get(normalise(speciesName)); return result != null ? result : SpeciesProperties.UNKNOWN; }  }
SpeciesPropertiesTrader { public SpeciesProperties get(String speciesName) { SpeciesProperties result = nameToSpecies.get(normalise(speciesName)); return result != null ? result : SpeciesProperties.UNKNOWN; }  @Inject void setSpeciesPropertiesDao(SpeciesPropertiesDao speciesPropertiesDao); @PostConstruct String refresh(); SpeciesProperties get(String speciesName); Collection<SpeciesProperties> getAll(); }
SpeciesPropertiesTrader { public SpeciesProperties get(String speciesName) { SpeciesProperties result = nameToSpecies.get(normalise(speciesName)); return result != null ? result : SpeciesProperties.UNKNOWN; }  @Inject void setSpeciesPropertiesDao(SpeciesPropertiesDao speciesPropertiesDao); @PostConstruct String refresh(); SpeciesProperties get(String speciesName); Collection<SpeciesProperties> getAll();  }