use of uk.ac.bbsrc.tgac.miso.core.data.ScientificName in project miso-lims by miso-lims.
the class DefaultSampleServiceTest method mockScientificName.
private ScientificName mockScientificName(long id, String alias) throws IOException {
ScientificName sn = new ScientificName();
sn.setId(id);
sn.setAlias(alias);
Mockito.when(scientificNameService.get(id)).thenReturn(sn);
return sn;
}
use of uk.ac.bbsrc.tgac.miso.core.data.ScientificName in project miso-lims by miso-lims.
the class DefaultSampleServiceTest method makeUnsavedChildTissue.
private SampleTissue makeUnsavedChildTissue() throws IOException {
SampleTissue sample = makeUnsavedParentTissue();
sample.setSampleType("type");
ScientificName sn = mockScientificName(1L, "scientific");
sample.setScientificName(sn);
mockShellProjectWithRealLookup(sample);
return sample;
}
use of uk.ac.bbsrc.tgac.miso.core.data.ScientificName in project miso-lims by miso-lims.
the class Dtos method to.
public static ReferenceGenome to(@Nonnull ReferenceGenomeDto from) {
ReferenceGenome to = new ReferenceGenomeImpl();
setLong(to::setId, from.getId(), false);
setString(to::setAlias, from.getAlias());
setObject(to::setDefaultScientificName, ScientificName::new, from.getDefaultScientificNameId());
return to;
}
use of uk.ac.bbsrc.tgac.miso.core.data.ScientificName in project miso-lims by miso-lims.
the class Dtos method to.
public static ScientificName to(@Nonnull ScientificNameDto from) {
ScientificName to = new ScientificName();
setLong(to::setId, from.getId(), false);
setString(to::setAlias, from.getAlias());
return to;
}
use of uk.ac.bbsrc.tgac.miso.core.data.ScientificName in project miso-lims by miso-lims.
the class HibernateScientificNameDaoIT method getCreateItem.
@Override
public ScientificName getCreateItem() {
ScientificName item = new ScientificName();
item.setAlias("New Sci Name");
return item;
}
Aggregations