Search in sources :

Example 1 with OpensearchService

use of no.nav.pto.veilarbportefolje.opensearch.OpensearchService in project veilarbportefolje by navikt.

the class EnhetControllerTest method initController.

@Before
public void initController() {
    opensearchService = mock(OpensearchService.class);
    pep = mock(Pep.class);
    modiaPep = mock(ModiaPep.class);
    authContextHolder = AuthContextHolderThreadLocal.instance();
    AuthService authService = new AuthService(pep, modiaPep);
    enhetController = new EnhetController(opensearchService, authService, mock(TiltakService.class), mock(MetricsClient.class), mock(UnleashService.class));
}
Also used : OpensearchService(no.nav.pto.veilarbportefolje.opensearch.OpensearchService) ModiaPep(no.nav.pto.veilarbportefolje.auth.ModiaPep) AuthService(no.nav.pto.veilarbportefolje.auth.AuthService) ModiaPep(no.nav.pto.veilarbportefolje.auth.ModiaPep) Pep(no.nav.common.abac.Pep) Before(org.junit.Before)

Aggregations

Pep (no.nav.common.abac.Pep)1 AuthService (no.nav.pto.veilarbportefolje.auth.AuthService)1 ModiaPep (no.nav.pto.veilarbportefolje.auth.ModiaPep)1 OpensearchService (no.nav.pto.veilarbportefolje.opensearch.OpensearchService)1 Before (org.junit.Before)1