Search in sources :

Example 6 with TissueOrigin

use of uk.ac.bbsrc.tgac.miso.core.data.TissueOrigin in project miso-lims by miso-lims.

the class OicrLibraryAliasValidatorTest method makeTissueOrigins.

private static List<TissueOrigin> makeTissueOrigins() {
    return makeList(new String[] { "Br", "Ly", "Pa" }, alias -> {
        TissueOrigin o = new TissueOriginImpl();
        o.setAlias(alias);
        return o;
    });
}
Also used : TissueOrigin(uk.ac.bbsrc.tgac.miso.core.data.TissueOrigin) TissueOriginImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.TissueOriginImpl)

Example 7 with TissueOrigin

use of uk.ac.bbsrc.tgac.miso.core.data.TissueOrigin in project miso-lims by miso-lims.

the class HibernateTissueOriginDaoIT method getCreateItem.

@Override
public TissueOrigin getCreateItem() {
    TissueOrigin origin = new TissueOriginImpl();
    origin.setAlias("TO");
    origin.setDescription("Test Origin");
    User user = (User) currentSession().get(UserImpl.class, 1L);
    origin.setChangeDetails(user);
    return origin;
}
Also used : TissueOrigin(uk.ac.bbsrc.tgac.miso.core.data.TissueOrigin) User(com.eaglegenomics.simlims.core.User) UserImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.UserImpl) TissueOriginImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.TissueOriginImpl)

Example 8 with TissueOrigin

use of uk.ac.bbsrc.tgac.miso.core.data.TissueOrigin in project miso-lims by miso-lims.

the class HibernateTissueOriginDaoIT method testGetUsage.

@Test
public void testGetUsage() throws Exception {
    TissueOrigin origin1 = (TissueOrigin) currentSession().get(TissueOriginImpl.class, 1L);
    assertEquals(5, getTestSubject().getUsage(origin1));
    TissueOrigin origin2 = (TissueOrigin) currentSession().get(TissueOriginImpl.class, 2L);
    assertEquals(0, getTestSubject().getUsage(origin2));
}
Also used : TissueOrigin(uk.ac.bbsrc.tgac.miso.core.data.TissueOrigin) TissueOriginImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.TissueOriginImpl) AbstractHibernateSaveDaoTest(uk.ac.bbsrc.tgac.miso.AbstractHibernateSaveDaoTest) Test(org.junit.Test)

Aggregations

TissueOrigin (uk.ac.bbsrc.tgac.miso.core.data.TissueOrigin)8 TissueOriginImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.TissueOriginImpl)7 SampleTissue (uk.ac.bbsrc.tgac.miso.core.data.SampleTissue)3 TissueType (uk.ac.bbsrc.tgac.miso.core.data.TissueType)3 TissueTypeImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.TissueTypeImpl)3 IlluminaNotificationDto (ca.on.oicr.gsi.runscanner.dto.IlluminaNotificationDto)2 NotificationDto (ca.on.oicr.gsi.runscanner.dto.NotificationDto)2 OxfordNanoporeNotificationDto (ca.on.oicr.gsi.runscanner.dto.OxfordNanoporeNotificationDto)2 Test (org.junit.Test)2 AbstractHibernateSaveDaoTest (uk.ac.bbsrc.tgac.miso.AbstractHibernateSaveDaoTest)2 SampleTissueImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleTissueImpl)2 OrderAliquotDto (uk.ac.bbsrc.tgac.miso.dto.PoolOrderDto.OrderAliquotDto)2 QcHierarchyNodeDto (uk.ac.bbsrc.tgac.miso.dto.dashi.QcHierarchyNodeDto)2 IlluminaRunDto (uk.ac.bbsrc.tgac.miso.dto.run.IlluminaRunDto)2 IonTorrentRunDto (uk.ac.bbsrc.tgac.miso.dto.run.IonTorrentRunDto)2 Ls454RunDto (uk.ac.bbsrc.tgac.miso.dto.run.Ls454RunDto)2 OxfordNanoporeRunDto (uk.ac.bbsrc.tgac.miso.dto.run.OxfordNanoporeRunDto)2 PacBioRunDto (uk.ac.bbsrc.tgac.miso.dto.run.PacBioRunDto)2 RunDto (uk.ac.bbsrc.tgac.miso.dto.run.RunDto)2 RunPositionDto (uk.ac.bbsrc.tgac.miso.dto.run.RunPositionDto)2