use of com.enonic.xp.security.UpdateUserParams in project xp by enonic.
the class ModifyProfileHandlerTest method testExamples.
@Test
public void testExamples() {
final User user = TestDataFixtures.getTestUser();
Mockito.when(securityService.getUser(Mockito.any())).thenReturn(Optional.of(user));
Mockito.when(this.securityService.updateUser(Mockito.isA(UpdateUserParams.class))).thenAnswer(invocationOnMock -> invokeUpdate((UpdateUserParams) invocationOnMock.getArguments()[0], user));
runScript("/lib/xp/examples/auth/modifyProfile.js");
}
Aggregations