Search in sources :

Example 11 with BoxUse

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

the class HibernateBoxUseDaoIT method testGetUsage.

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

Aggregations

BoxUse (uk.ac.bbsrc.tgac.miso.core.data.BoxUse)11 Test (org.junit.Test)6 AbstractDAOTest (uk.ac.bbsrc.tgac.miso.AbstractDAOTest)6 Box (uk.ac.bbsrc.tgac.miso.core.data.Box)3 BoxSize (uk.ac.bbsrc.tgac.miso.core.data.BoxSize)3 BoxImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.BoxImpl)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 UserImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.UserImpl)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 SolidRunDto (uk.ac.bbsrc.tgac.miso.dto.run.SolidRunDto)2