Skip to content

Commit

Permalink
fix: corrected constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
mebo4b committed Dec 19, 2022
1 parent d4105fe commit 69f9a27
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 69f9a27

Please sign in to comment.