From 798b11d5b94a5d6d27a08beb5028c9992bae6895 Mon Sep 17 00:00:00 2001 From: tkuzynow Date: Fri, 30 Aug 2024 13:14:36 +0200 Subject: [PATCH] fix: tests --- .../api/facade/assignsession/AssignEnquiryFacadeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/de/caritas/cob/userservice/api/facade/assignsession/AssignEnquiryFacadeTest.java b/src/test/java/de/caritas/cob/userservice/api/facade/assignsession/AssignEnquiryFacadeTest.java index a64d58dea..2ad7b24f9 100644 --- a/src/test/java/de/caritas/cob/userservice/api/facade/assignsession/AssignEnquiryFacadeTest.java +++ b/src/test/java/de/caritas/cob/userservice/api/facade/assignsession/AssignEnquiryFacadeTest.java @@ -383,7 +383,7 @@ void assignEnquiry_Should_removeAllUnauthorizedMembers_When_sessionIsNotATeamSes verifyAsync( (a) -> verify(this.rocketChatFacade, times(1)) - .removeUserFromGroup(consultantToRemove.getRocketChatId(), session.getGroupId())); + .removeUserFromGroupIgnoreGroupNotFound(consultantToRemove.getRocketChatId(), session.getGroupId())); verifyAsync( (a) -> verify(this.rocketChatFacade, times(1)) @@ -424,7 +424,7 @@ void assignEnquiry_ShouldNot_removeTeamMembers_When_sessionIsTeamSession() { verifyAsync( (a) -> verify(this.rocketChatFacade, atLeastOnce()) - .removeUserFromGroup(consultantToRemove.getRocketChatId(), session.getGroupId())); + .removeUserFromGroupIgnoreGroupNotFound(consultantToRemove.getRocketChatId(), session.getGroupId())); verifyAsync( (a) -> verify(this.rocketChatFacade, atLeastOnce())