Search in sources :

Example 6 with Workstation

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

the class HibernateWorkstationDaoIT method testGet.

@Test
public void testGet() throws IOException {
    long id = 1L;
    Workstation workstation = sut.get(id);
    assertNotNull(workstation);
    assertEquals(id, workstation.getId());
}
Also used : Workstation(uk.ac.bbsrc.tgac.miso.core.data.Workstation) AbstractDAOTest(uk.ac.bbsrc.tgac.miso.AbstractDAOTest) Test(org.junit.Test)

Example 7 with Workstation

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

the class HibernateWorkstationDaoIT method testGetUsage.

@Test
public void testGetUsage() throws IOException {
    Workstation workstation = (Workstation) getSessionFactory().getCurrentSession().get(Workstation.class, 1L);
    assertEquals(4L, sut.getUsage(workstation));
}
Also used : Workstation(uk.ac.bbsrc.tgac.miso.core.data.Workstation) AbstractDAOTest(uk.ac.bbsrc.tgac.miso.AbstractDAOTest) Test(org.junit.Test)

Aggregations

Workstation (uk.ac.bbsrc.tgac.miso.core.data.Workstation)7 Test (org.junit.Test)4 AbstractDAOTest (uk.ac.bbsrc.tgac.miso.AbstractDAOTest)4 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 InstrumentImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.InstrumentImpl)2 DetailedLibrary (uk.ac.bbsrc.tgac.miso.core.data.DetailedLibrary)1 Index (uk.ac.bbsrc.tgac.miso.core.data.Index)1 Instrument (uk.ac.bbsrc.tgac.miso.core.data.Instrument)1