Search in sources :

Example 1 with OpensearchIndexer

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

the class VedtakServiceTest method setup.

@Before
public void setup() {
    JdbcTemplate db = new JdbcTemplate(setupInMemoryDatabase());
    this.vedtakStatusRepository = new VedtakStatusRepository(db);
    OpensearchIndexer opensearchIndexer = mock(OpensearchIndexer.class);
    VedtakStatusRepositoryV2 vedtakStatusRepositoryV2 = mock(VedtakStatusRepositoryV2.class);
    this.vedtakService = new VedtakService(vedtakStatusRepository, vedtakStatusRepositoryV2, opensearchIndexer);
    vedtakStatusRepository.slettGamleVedtakOgUtkast(AKTORID);
}
Also used : OpensearchIndexer(no.nav.pto.veilarbportefolje.opensearch.OpensearchIndexer) JdbcTemplate(org.springframework.jdbc.core.JdbcTemplate) Before(org.junit.Before)

Aggregations

OpensearchIndexer (no.nav.pto.veilarbportefolje.opensearch.OpensearchIndexer)1 Before (org.junit.Before)1 JdbcTemplate (org.springframework.jdbc.core.JdbcTemplate)1