use of org.eol.globi.domain.Specimen in project eol-globi-data by jhpoelen.
the class ExporterOccurrenceAggregatesTest method specimenEatCatAndDog.
private void specimenEatCatAndDog(Double length, Study myStudy, String scientificName, String externalId) throws NodeFactoryException {
Specimen specimen = collectSpecimen(myStudy, scientificName, externalId);
eatPrey(specimen, "Canis lupus", "EOL:555", myStudy);
eatPrey(specimen, "Felis domesticus", "EOL:666", myStudy);
eatPrey(specimen, "Blah blahuuuu", PropertyAndValueDictionary.NO_MATCH, myStudy);
if (null != length) {
specimen.setLengthInMm(length);
}
Location location = nodeFactory.getOrCreateLocation(new LocationImpl(12.0, -45.9, -60.0, null));
specimen.caughtIn(location);
}
Aggregations