Search in sources :

Example 1 with OpensearchIndexerV2

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

the class BrukerServiceTest method setUp.

@Before
public void setUp() {
    db = new JdbcTemplate(setupInMemoryDatabase());
    brukerRepository = new BrukerRepository(db, null, mock(UnleashService.class));
    aktorClient = mock(AktorClient.class);
    opensearchIndexerV2 = mock(OpensearchIndexerV2.class);
    brukerService = new BrukerService(brukerRepository, aktorClient, opensearchIndexerV2);
    db.execute("TRUNCATE TABLE OPPFOLGINGSBRUKER");
    db.execute("truncate table AKTOERID_TO_PERSONID");
    insert(db, "OPPFOLGINGSBRUKER").value("FODSELSNR", FNR).value("PERSON_ID", PERSON_ID).execute();
}
Also used : OpensearchIndexerV2(no.nav.pto.veilarbportefolje.opensearch.OpensearchIndexerV2) BrukerRepository(no.nav.pto.veilarbportefolje.database.BrukerRepository) JdbcTemplate(org.springframework.jdbc.core.JdbcTemplate) AktorClient(no.nav.pto.veilarbportefolje.domene.AktorClient) Before(org.junit.Before)

Aggregations

BrukerRepository (no.nav.pto.veilarbportefolje.database.BrukerRepository)1 AktorClient (no.nav.pto.veilarbportefolje.domene.AktorClient)1 OpensearchIndexerV2 (no.nav.pto.veilarbportefolje.opensearch.OpensearchIndexerV2)1 Before (org.junit.Before)1 JdbcTemplate (org.springframework.jdbc.core.JdbcTemplate)1