Search in sources :

Example 11 with ArendeListItem

use of se.inera.intyg.webcert.web.web.controller.api.dto.ArendeListItem in project webcert by sklintyg.

the class ArendeListItemConverterTest method testConvertEmptyVardperson.

@Test
public void testConvertEmptyVardperson() {
    FragaSvar fs = new FragaSvar();
    fs.setIntygsReferens(new IntygsReferens());
    ArendeListItem arende = ArendeListItemConverter.convert(fs);
    assertNull(arende);
}
Also used : ArendeListItem(se.inera.intyg.webcert.web.web.controller.api.dto.ArendeListItem) IntygsReferens(se.inera.intyg.webcert.persistence.fragasvar.model.IntygsReferens) FragaSvar(se.inera.intyg.webcert.persistence.fragasvar.model.FragaSvar) Test(org.junit.Test)

Aggregations

ArendeListItem (se.inera.intyg.webcert.web.web.controller.api.dto.ArendeListItem)11 Test (org.junit.Test)6 ArendeAmne (se.inera.intyg.webcert.persistence.arende.model.ArendeAmne)5 FragaSvar (se.inera.intyg.webcert.persistence.fragasvar.model.FragaSvar)4 LocalDateTime (java.time.LocalDateTime)3 Arende (se.inera.intyg.webcert.persistence.arende.model.Arende)3 Status (se.inera.intyg.webcert.persistence.model.Status)3 Transactional (org.springframework.transaction.annotation.Transactional)2 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 Preconditions (com.google.common.base.Preconditions)1 Strings (com.google.common.base.Strings)1 Clock (java.time.Clock)1 ArrayList (java.util.ArrayList)1 Arrays (java.util.Arrays)1 Comparator (java.util.Comparator)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1 Objects (java.util.Objects)1 Set (java.util.Set)1