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