Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
janolaveide committed Jun 8, 2021
1 parent a14ce41 commit 75762a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

import no.nav.pdl.HentPersonQueryRequest;
import no.nav.pdl.PersonResponseProjection;
import no.nav.vedtak.exception.TekniskException;
import no.nav.vedtak.exception.VLException;
import no.nav.vedtak.felles.integrasjon.rest.jersey.StsAccessTokenClientRequestFilter;
import no.nav.vedtak.felles.integrasjon.rest.jersey.StsAccessTokenJerseyClient;
import no.nav.vedtak.felles.integrasjon.rest.jersey.tokenx.TokenXClient;
Expand Down Expand Up @@ -218,7 +218,7 @@ void testPersonNoTokens() throws Exception {
try (var s = mockStatic(SubjectHandler.class)) {
s.when(SubjectHandler::getSubjectHandler).thenReturn(subjectHandler);
stubFor(post(urlPathEqualTo(GRAPHQL)));
assertThrows(TekniskException.class, () -> legacyClient.hentPerson(pq(), pp()));
assertThrows(VLException.class, () -> legacyClient.hentPerson(pq(), pp()));
}
}

Expand Down

0 comments on commit 75762a6

Please # to comment.