Search in sources :

Example 1 with RelationKod

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());
}
Also used : Utkast(se.inera.intyg.webcert.persistence.utkast.model.Utkast) RelationKod(se.inera.intyg.common.support.common.enumerations.RelationKod) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 RelationKod (se.inera.intyg.common.support.common.enumerations.RelationKod)1 Utkast (se.inera.intyg.webcert.persistence.utkast.model.Utkast)1