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);
}
Aggregations