Skip to content

Commit

Permalink
[PRDP-238] Fix unit test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
svariant committed Nov 28, 2023
1 parent 65fcab7 commit a352ec6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void requestWithoutBizEventIdSaveMultipleReceiptErrorInReviewed() {
@Test
void requestWithoutRequestBodySaveMultipleReceiptErrorInReviewed() {
HttpRequestMessage<Optional<ReceiptToReviewedRequest>> request = mock(HttpRequestMessage.class);
when(request.getBody()).thenReturn(null);
when(request.getBody()).thenReturn(Optional.of(new ReceiptToReviewedRequest()));

doAnswer((Answer<HttpResponseMessage.Builder>) invocation -> {
HttpStatus status = (HttpStatus) invocation.getArguments()[0];
Expand Down Expand Up @@ -203,7 +203,7 @@ void requestWithValidBizEventIdButReceiptNotFound() throws ReceiptNotFoundExcept
@Test
void requestWithoutRequestBodyDoesNotFindAnyReceiptError() {
HttpRequestMessage<Optional<ReceiptToReviewedRequest>> request = mock(HttpRequestMessage.class);
when(request.getBody()).thenReturn(null);
when(request.getBody()).thenReturn(Optional.of(new ReceiptToReviewedRequest()));

doAnswer((Answer<HttpResponseMessage.Builder>) invocation -> {
HttpStatus status = (HttpStatus) invocation.getArguments()[0];
Expand Down

0 comments on commit a352ec6

Please sign in to comment.