Skip to content

Commit

Permalink
T - Legger til mocking for httpStatus exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dskarpas committed Oct 31, 2024
1 parent 31a6843 commit 877cc8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ internal class EuxInnhentingServiceTest {
val buc = Buc(processDefinitionName = "P_BUC_02", documents = documentsItem)
val docs = listOf(BucOgDocumentAvdod(rinaid, buc, dokumentid))

every {euxKlient.getSedOnBucByDocumentIdNotAsSystemUser(rinaid, dokumentid) } throws HttpClientErrorException(HttpStatus.MULTI_STATUS)
every {euxKlient.getSedOnBucByDocumentIdNotAsSystemUser(rinaid, dokumentid, any()) } throws HttpClientErrorException(HttpStatus.MULTI_STATUS)

assertThrows<Exception> { euxInnhentingService.hentDocumentJsonAvdod(docs) }
}
Expand Down

0 comments on commit 877cc8d

Please sign in to comment.