use of no.nav.common.sts.SystemUserTokenProvider in project veilarbportefolje by navikt.
the class OppfolgingServiceTest method setup.
@Before
public void setup() {
systemUserTokenProvider = mock(SystemUserTokenProvider.class);
DataSource ds = setupInMemoryDatabase();
JdbcTemplate db = new JdbcTemplate(ds);
oppfolgingRepositoryV2 = new OppfolgingRepositoryV2(SingletonPostgresContainer.init().createJdbcTemplate());
oppfolgingRepository = new OppfolgingRepository(db);
String apiUrl = "http://localhost:" + wireMockRule.port();
oppfolgingService = new OppfolgingService(oppfolgingRepository, mock(OppfolgingAvsluttetService.class), systemUserTokenProvider, apiUrl, oppfolgingRepositoryV2, mock(AktorClient.class));
}
Aggregations