use of ca.corefacility.bioinformatics.irida.utils.model.IdentifiableTestEntity in project irida by phac-nml.
the class CRUDServiceImplTest method testRead.
@Test
public void testRead() {
IdentifiableTestEntity i = new IdentifiableTestEntity();
i.setId(new Long(1));
i.setNonNull("Definitely not null");
when(crudRepository.findOne(i.getId())).thenReturn(i);
try {
i = crudService.read(i.getId());
assertNotNull(i);
} catch (IllegalArgumentException e) {
fail();
}
}
Aggregations