Search in sources :

Example 6 with SelectableVardenhet

use of se.inera.intyg.infra.integration.hsa.model.SelectableVardenhet in project webcert by sklintyg.

the class IntygApiControllerTest method mockUser.

private void mockUser() {
    user = mock(WebCertUser.class);
    SelectableVardenhet vardenhet = mock(SelectableVardenhet.class);
    when(user.getIdsOfSelectedVardenhet()).thenReturn(ENHET_IDS);
    when(webCertUserService.getUser()).thenReturn(user);
}
Also used : WebCertUser(se.inera.intyg.webcert.web.service.user.dto.WebCertUser) SelectableVardenhet(se.inera.intyg.infra.integration.hsa.model.SelectableVardenhet)

Aggregations

SelectableVardenhet (se.inera.intyg.infra.integration.hsa.model.SelectableVardenhet)6 AbstractVardenhet (se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet)2 WebCertUser (se.inera.intyg.webcert.web.service.user.dto.WebCertUser)2 Authentication (org.springframework.security.core.Authentication)1 Vardenhet (se.inera.intyg.common.support.model.common.internal.Vardenhet)1 Vardenhet (se.inera.intyg.infra.integration.hsa.model.Vardenhet)1 Enhet (se.riv.clinicalprocess.healthcond.certificate.v3.Enhet)1