Skip to content

Commit

Permalink
chore: Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-putzu committed Oct 21, 2024
1 parent 731b4ca commit e50904a
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,22 @@ void sendMessageWontProceedsWhenOnboardingIsNotReferredToInstitution() {
verifyNoInteractions(eventHubRestClient);
}

@Test
void onboardingEventMapTest() {
final Onboarding onboarding = createOnboarding();
onboarding.setId("ID");
Map<String, String> properties = NotificationEventServiceDefault.onboardingEventMap(onboarding);
assertNotNull(properties);
assertEquals("ID", properties.get("id"));
}

@Test
void onboardingEventFailureMapTest() {
final Onboarding onboarding = createOnboarding();
Map<String, String> properties = NotificationEventServiceDefault.onboardingEventFailureMap(onboarding, new Exception());
assertNotNull(properties);
}

@Test
void notificationEventMapTest() {
NotificationToSend notificationToSend = getNotificationBaseToSend();
Expand Down Expand Up @@ -346,7 +362,7 @@ void notificationEventUserMapTest() {

assertEquals("userId", properties.get("userId"));
assertEquals("OPERATOR", properties.get("role"));


}

Expand Down

0 comments on commit e50904a

Please sign in to comment.