@Test void storeProfilePhoto_WillSendCommandAndWaitForCompletion() { defaultUsersService.storeProfilePhoto(USER_ID, PROFILE_PHOTO_FILE_ID); verify(commandGateway).sendAndWait(new RegisterUploadedUserProfilePhotoCommand(USER_ID, PROFILE_PHOTO_FILE_ID)); }
@Override public void storeProfilePhoto(UUID requestingUserId, UUID profilePhotoFileId) { commandGateway.sendAndWait(new RegisterUploadedUserProfilePhotoCommand(requestingUserId, profilePhotoFileId)); }
DefaultUsersService implements UsersService { @Override public void storeProfilePhoto(UUID requestingUserId, UUID profilePhotoFileId) { commandGateway.sendAndWait(new RegisterUploadedUserProfilePhotoCommand(requestingUserId, profilePhotoFileId)); } }
DefaultUsersService implements UsersService { @Override public void storeProfilePhoto(UUID requestingUserId, UUID profilePhotoFileId) { commandGateway.sendAndWait(new RegisterUploadedUserProfilePhotoCommand(requestingUserId, profilePhotoFileId)); } DefaultUsersService(HazelcastCommandGateway commandGateway,
                               RandomFieldsGenerator randomFieldsGenerator,
                               PasswordEncoder passwordEncoder); }
DefaultUsersService implements UsersService { @Override public void storeProfilePhoto(UUID requestingUserId, UUID profilePhotoFileId) { commandGateway.sendAndWait(new RegisterUploadedUserProfilePhotoCommand(requestingUserId, profilePhotoFileId)); } DefaultUsersService(HazelcastCommandGateway commandGateway,
                               RandomFieldsGenerator randomFieldsGenerator,
                               PasswordEncoder passwordEncoder); @Override void updateUser(UUID requestingUserId, UUID userId, String emailChange,
                           String displayNameChange, String passwordChange); @Override UUID createUser(UUID requestingUserId, UUID organizationId, String username, String displayName, String rawPassword); @Override void storeProfilePhoto(UUID requestingUserId, UUID profilePhotoFileId); }
DefaultUsersService implements UsersService { @Override public void storeProfilePhoto(UUID requestingUserId, UUID profilePhotoFileId) { commandGateway.sendAndWait(new RegisterUploadedUserProfilePhotoCommand(requestingUserId, profilePhotoFileId)); } DefaultUsersService(HazelcastCommandGateway commandGateway,
                               RandomFieldsGenerator randomFieldsGenerator,
                               PasswordEncoder passwordEncoder); @Override void updateUser(UUID requestingUserId, UUID userId, String emailChange,
                           String displayNameChange, String passwordChange); @Override UUID createUser(UUID requestingUserId, UUID organizationId, String username, String displayName, String rawPassword); @Override void storeProfilePhoto(UUID requestingUserId, UUID profilePhotoFileId);  }