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());
}
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));
}
Aggregations