From 69f9a27525af0c7b77df46d873168557d56a8a1c Mon Sep 17 00:00:00 2001 From: Markus Eberl Date: Mon, 19 Dec 2022 11:45:46 +0100 Subject: [PATCH] fix: corrected constructors --- .../service/user/ValidatedUserAccountProviderTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/java/de/caritas/cob/userservice/api/service/user/ValidatedUserAccountProviderTest.java b/src/test/java/de/caritas/cob/userservice/api/service/user/ValidatedUserAccountProviderTest.java index 2bbc254f4..698f1c680 100644 --- a/src/test/java/de/caritas/cob/userservice/api/service/user/ValidatedUserAccountProviderTest.java +++ b/src/test/java/de/caritas/cob/userservice/api/service/user/ValidatedUserAccountProviderTest.java @@ -122,7 +122,7 @@ public void retrieveValidatedConsultant_Should_ReturnConsultant_When_ConsultantI verify(this.rocketChatService, times(1)) .updateUser( new UserUpdateRequestDTO( - consultant.getRocketChatId(), new UserUpdateDataDTO("newMail"))); + consultant.getRocketChatId(), new UserUpdateDataDTO("newMail", false))); consultant.setEmail("newMail"); verify(this.consultantService, times(1)).saveConsultant(consultant); verifyNoMoreInteractions(this.rocketChatService); @@ -143,7 +143,8 @@ public void retrieveValidatedConsultant_Should_ReturnConsultant_When_ConsultantI verify(keycloakService).changeEmailAddress(newMail); verify(this.rocketChatService, times(1)) - .updateUser(new UserUpdateRequestDTO(user.getRcUserId(), new UserUpdateDataDTO(newMail))); + .updateUser( + new UserUpdateRequestDTO(user.getRcUserId(), new UserUpdateDataDTO(newMail, false))); verify(this.appointmentService, times(1)).updateAskerEmail(user.getUserId(), newMail); user.setEmail(newMail); verify(this.userService, times(1)).saveUser(user); @@ -170,7 +171,7 @@ public void retrieveValidatedConsultant_Should_ReturnConsultant_When_ConsultantI verify(rocketChatService) .updateUser( new UserUpdateRequestDTO( - consultant.getRocketChatId(), new UserUpdateDataDTO(dummyEmail))); + consultant.getRocketChatId(), new UserUpdateDataDTO(dummyEmail, false))); consultant.setEmail(dummyEmail); verify(consultantService).saveConsultant(consultant); verifyNoMoreInteractions(rocketChatService); @@ -194,7 +195,7 @@ public void retrieveValidatedConsultant_Should_ReturnConsultant_When_ConsultantI verify(keycloakService, never()).changeEmailAddress(anyString()); verify(rocketChatService) .updateUser( - new UserUpdateRequestDTO(user.getRcUserId(), new UserUpdateDataDTO(dummyEmail))); + new UserUpdateRequestDTO(user.getRcUserId(), new UserUpdateDataDTO(dummyEmail, false))); verify(this.appointmentService, times(1)).updateAskerEmail(user.getUserId(), dummyEmail); user.setEmail(dummyEmail); verify(userService).saveUser(user);