Skip to content

Commit

Permalink
chore: Add test for resend notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-putzu committed Aug 28, 2024
1 parent 60a716b commit 029daba
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,10 @@ void resendNotificationsActivityException() throws JsonProcessingException {
String filtersString = "{\"productId\":\"prod-pagopa\", \"status\":[\"COMPLETED\"]}";

doThrow(new NotificationException("Error")).when(notificationEventService).send(any(), any(), any(), any());
when(notificationEventResenderService.resendNotifications(any(), any())).thenReturn(null);
// when(notificationEventResenderService.resendNotifications(any(), any())).thenReturn(null);
List<Onboarding> onboardings = new ArrayList<>();
onboardings.add(new Onboarding());
when(onboardingService.getOnboardingsToResend(any(), anyInt(), anyInt())).thenReturn(onboardings);

String nextFilter = function.resendNotificationsActivity(filtersString, context);

Expand Down

0 comments on commit 029daba

Please sign in to comment.