@Test public void unknownSpecies() { assertThat(subject.get("foobar"), is(SpeciesProperties.UNKNOWN)); assertThat(subject.get(null), is(SpeciesProperties.UNKNOWN)); }
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();  }