use of uk.ac.bbsrc.tgac.miso.core.data.impl.TissueTypeImpl in project miso-lims by miso-lims.
the class OicrSampleAliasGeneratorTest method makeTissueFromTissue.
private SampleTissue makeTissueFromTissue() throws Exception {
SampleTissue parent = (SampleTissue) makeFullTissue();
parent.setAlias("PROJ_0001_Bn_P_nn_1-1");
parent.setParent(makeIdentity());
SampleTissue child = new SampleTissueImpl();
SampleClass sc = new SampleClassImpl();
sc.setSampleCategory(SampleTissue.CATEGORY_NAME);
child.setSampleClass(sc);
child.setParent(parent);
child.setTimesReceived(1);
child.setTubeNumber(1);
TissueOrigin to = new TissueOriginImpl();
to.setAlias("Bn");
child.setTissueOrigin(to);
TissueType tt = new TissueTypeImpl();
tt.setAlias("O");
child.setTissueType(tt);
return child;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.TissueTypeImpl in project miso-lims by miso-lims.
the class OicrSampleAliasGeneratorTest method makeFullTissue.
private Sample makeFullTissue() {
SampleTissue tissue = makeMinimalTissue();
TissueOrigin to = new TissueOriginImpl();
to.setAlias("Bn");
tissue.setTissueOrigin(to);
TissueType tt = new TissueTypeImpl();
tt.setAlias("P");
tissue.setTissueType(tt);
tissue.setPassageNumber(32);
tissue.setTimesReceived(2);
tissue.setTubeNumber(3);
return tissue;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.TissueTypeImpl in project miso-lims by miso-lims.
the class OicrLibraryAliasValidatorTest method makeTissueTypes.
private static List<TissueType> makeTissueTypes() {
return makeList(new String[] { "P", "R" }, alias -> {
TissueType tt = new TissueTypeImpl();
tt.setAlias(alias);
return tt;
});
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.TissueTypeImpl in project miso-lims by miso-lims.
the class AssayTestDto method to.
public AssayTest to() {
AssayTest to = new AssayTest();
setLong(to::setId, getId(), false);
setString(to::setAlias, getAlias());
setObject(to::setTissueType, TissueTypeImpl::new, getTissueTypeId());
setObject(to::setExtractionClass, SampleClassImpl::new, getExtractionClassId());
setBoolean(to::setNegateTissueType, isNegateTissueType(), false);
setObject(to::setLibraryDesignCode, LibraryDesignCode::new, getLibraryDesignCodeId());
setObject(to::setLibraryQualificationMethod, getLibraryQualificationMethod(), LibraryQualificationMethod::valueOf);
setObject(to::setLibraryQualificationDesignCode, LibraryDesignCode::new, getLibraryQualificationDesignCodeId());
setBoolean(to::setRepeatPerTimepoint, isRepeatPerTimepoint(), false);
return to;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.TissueTypeImpl in project miso-lims by miso-lims.
the class HibernateSampleDaoIT method getMatchingGhostTissueTest.
@Test
public void getMatchingGhostTissueTest() throws Exception {
SampleTissue tissue = new SampleTissueImpl();
tissue.setParent(new SampleIdentityImpl());
tissue.getParent().setId(15L);
tissue.setTissueOrigin(new TissueOriginImpl());
tissue.getTissueOrigin().setId(1L);
tissue.setTissueType(new TissueTypeImpl());
tissue.getTissueType().setId(1L);
tissue.setTimesReceived(1);
tissue.setTubeNumber(1);
SampleTissue match = dao.getMatchingGhostTissue(tissue);
assertNotNull(match);
assertEquals(16L, match.getId());
}
Aggregations