From eb1fdbf6b63d2addad71c21d1fdb83bd2f779b9b Mon Sep 17 00:00:00 2001 From: Sergii Kabashniuk Date: Sat, 17 Nov 2018 16:56:49 +0200 Subject: [PATCH] Fix failed test due to the wrong mock reset (#11957) --- .../org/eclipse/che/api/user/server/ProfileServiceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wsmaster/che-core-api-user/src/test/java/org/eclipse/che/api/user/server/ProfileServiceTest.java b/wsmaster/che-core-api-user/src/test/java/org/eclipse/che/api/user/server/ProfileServiceTest.java index 8f96754626..d08b528164 100644 --- a/wsmaster/che-core-api-user/src/test/java/org/eclipse/che/api/user/server/ProfileServiceTest.java +++ b/wsmaster/che-core-api-user/src/test/java/org/eclipse/che/api/user/server/ProfileServiceTest.java @@ -83,7 +83,8 @@ public class ProfileServiceTest { .when(linksInjector.injectLinks(any(), any())) .thenAnswer(inv -> inv.getArguments()[0]); - when(profileManager.getById(SUBJECT.getUserId())) + lenient() + .when(profileManager.getById(SUBJECT.getUserId())) .thenReturn(new ProfileImpl(SUBJECT.getUserId())); }