Search in sources :

Example 16 with IndexFamily

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

the class HibernateIndexFamilyDaoIT method testCreate.

@Test
public void testCreate() throws IOException {
    String name = "New Family";
    IndexFamily fam = new IndexFamily();
    fam.setName(name);
    fam.setPlatformType(PlatformType.ILLUMINA);
    fam.setArchived(false);
    long savedId = sut.create(fam);
    clearSession();
    IndexFamily saved = (IndexFamily) getSessionFactory().getCurrentSession().get(IndexFamily.class, savedId);
    assertEquals(name, saved.getName());
}
Also used : IndexFamily(uk.ac.bbsrc.tgac.miso.core.data.IndexFamily) AbstractDAOTest(uk.ac.bbsrc.tgac.miso.AbstractDAOTest) Test(org.junit.Test)

Aggregations

IndexFamily (uk.ac.bbsrc.tgac.miso.core.data.IndexFamily)16 Test (org.junit.Test)7 AbstractDAOTest (uk.ac.bbsrc.tgac.miso.AbstractDAOTest)7 Index (uk.ac.bbsrc.tgac.miso.core.data.Index)7 IlluminaNotificationDto (ca.on.oicr.gsi.runscanner.dto.IlluminaNotificationDto)3 NotificationDto (ca.on.oicr.gsi.runscanner.dto.NotificationDto)3 OxfordNanoporeNotificationDto (ca.on.oicr.gsi.runscanner.dto.OxfordNanoporeNotificationDto)3 OrderAliquotDto (uk.ac.bbsrc.tgac.miso.dto.PoolOrderDto.OrderAliquotDto)3 QcHierarchyNodeDto (uk.ac.bbsrc.tgac.miso.dto.dashi.QcHierarchyNodeDto)3 IlluminaRunDto (uk.ac.bbsrc.tgac.miso.dto.run.IlluminaRunDto)3 IonTorrentRunDto (uk.ac.bbsrc.tgac.miso.dto.run.IonTorrentRunDto)3 Ls454RunDto (uk.ac.bbsrc.tgac.miso.dto.run.Ls454RunDto)3 OxfordNanoporeRunDto (uk.ac.bbsrc.tgac.miso.dto.run.OxfordNanoporeRunDto)3 PacBioRunDto (uk.ac.bbsrc.tgac.miso.dto.run.PacBioRunDto)3 RunDto (uk.ac.bbsrc.tgac.miso.dto.run.RunDto)3 RunPositionDto (uk.ac.bbsrc.tgac.miso.dto.run.RunPositionDto)3 SolidRunDto (uk.ac.bbsrc.tgac.miso.dto.run.SolidRunDto)3 GetMapping (org.springframework.web.bind.annotation.GetMapping)2 VolumeUnit (uk.ac.bbsrc.tgac.miso.core.data.VolumeUnit)2 PlatformType (uk.ac.bbsrc.tgac.miso.core.data.type.PlatformType)2