Fix failed test due to the wrong mock reset (#11957)
parent
9c6fe0c44a
commit
eb1fdbf6b6
|
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue