Fix failed test due to the wrong mock reset (#11957)

6.19.x
Sergii Kabashniuk 2018-11-17 16:56:49 +02:00 committed by GitHub
parent 9c6fe0c44a
commit eb1fdbf6b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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()));
}