@Test void updatePrivateProfile() { tested.updatePrivateProfile(user, privateProfile); verify(privateKeyService).validateUserHasAccessOrThrow(user); verify(storeService).registerPrivate(user.getUserID(), privateProfile); }
@Override public void updatePrivateProfile(UserIDAuth forUser, UserPrivateProfile profile) { validateKeystoreAccess(forUser); log.debug("Update private profile {}", profile); storeService.registerPrivate(forUser.getUserID(), profile); }
ProfileUpdatingServiceImpl implements ProfileUpdatingService { @Override public void updatePrivateProfile(UserIDAuth forUser, UserPrivateProfile profile) { validateKeystoreAccess(forUser); log.debug("Update private profile {}", profile); storeService.registerPrivate(forUser.getUserID(), profile); } }
ProfileUpdatingServiceImpl implements ProfileUpdatingService { @Override public void updatePrivateProfile(UserIDAuth forUser, UserPrivateProfile profile) { validateKeystoreAccess(forUser); log.debug("Update private profile {}", profile); storeService.registerPrivate(forUser.getUserID(), profile); } @Inject  ProfileUpdatingServiceImpl(ProfileStoreService storeService, PrivateKeyService privateKeyService,
                                      StorageKeyStoreOperations storageKeyStoreOper,
                                      DocumentKeyStoreOperations keyStoreOper); }
ProfileUpdatingServiceImpl implements ProfileUpdatingService { @Override public void updatePrivateProfile(UserIDAuth forUser, UserPrivateProfile profile) { validateKeystoreAccess(forUser); log.debug("Update private profile {}", profile); storeService.registerPrivate(forUser.getUserID(), profile); } @Inject  ProfileUpdatingServiceImpl(ProfileStoreService storeService, PrivateKeyService privateKeyService,
                                      StorageKeyStoreOperations storageKeyStoreOper,
                                      DocumentKeyStoreOperations keyStoreOper); @Override @SneakyThrows void updatePublicProfile(UserIDAuth forUser, UserPublicProfile profile); @Override void updatePrivateProfile(UserIDAuth forUser, UserPrivateProfile profile); @Override void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword); }
ProfileUpdatingServiceImpl implements ProfileUpdatingService { @Override public void updatePrivateProfile(UserIDAuth forUser, UserPrivateProfile profile) { validateKeystoreAccess(forUser); log.debug("Update private profile {}", profile); storeService.registerPrivate(forUser.getUserID(), profile); } @Inject  ProfileUpdatingServiceImpl(ProfileStoreService storeService, PrivateKeyService privateKeyService,
                                      StorageKeyStoreOperations storageKeyStoreOper,
                                      DocumentKeyStoreOperations keyStoreOper); @Override @SneakyThrows void updatePublicProfile(UserIDAuth forUser, UserPublicProfile profile); @Override void updatePrivateProfile(UserIDAuth forUser, UserPrivateProfile profile); @Override void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword);  }