use of se.inera.intyg.common.support.common.enumerations.RelationKod in project webcert by sklintyg.
the class UtkastRepositoryTest method testSaveRelation.
@Test
public void testSaveRelation() {
final String relationIntygsId = "relationIntygsId";
final RelationKod relationKod = RelationKod.FRLANG;
Utkast saved = utkastRepository.save(UtkastTestUtil.buildUtkast(UtkastTestUtil.ENHET_1_ID, relationIntygsId, relationKod));
Utkast read = utkastRepository.findOne(saved.getIntygsId());
assertEquals(UtkastTestUtil.ENHET_1_ID, read.getEnhetsId());
assertEquals(relationIntygsId, read.getRelationIntygsId());
assertEquals(relationKod, read.getRelationKod());
}
Aggregations