@Test public void testUpdatePatient() throws SpiritClientNotAvailableException { Patient patient = mock(Patient.class); PatientProfileDto patientDto = mock(PatientProfileDto.class); when(patientProfileDtoToPatientMapper.map(patientDto)).thenReturn( patient); sut.updatePatient(patientDto); verify(patientRepository, times(1)).save(patient); verify(spiritQueryService, times(1)).updatePatient(patientDto); }
@Override @Transactional public void updatePatient(PatientProfileDto patientProfileDto) { Patient patient = patientProfileDtoToPatientMapper .map(patientProfileDto); patientRepository.save(patient); spiritQueryService.updatePatient(patientProfileDto); }
AdminServiceImpl extends
		gov.samhsa.consent2share.service.admin.AdminServiceImpl { @Override @Transactional public void updatePatient(PatientProfileDto patientProfileDto) { Patient patient = patientProfileDtoToPatientMapper .map(patientProfileDto); patientRepository.save(patient); spiritQueryService.updatePatient(patientProfileDto); } }
AdminServiceImpl extends
		gov.samhsa.consent2share.service.admin.AdminServiceImpl { @Override @Transactional public void updatePatient(PatientProfileDto patientProfileDto) { Patient patient = patientProfileDtoToPatientMapper .map(patientProfileDto); patientRepository.save(patient); spiritQueryService.updatePatient(patientProfileDto); } AdminServiceImpl(
			Integer accountVerificationTokenExpireInHours,
			StaffRepository administratorRepository,
			PatientRepository patientRepository,
			DtoToDomainEntityMapper<PatientProfileDto, Patient> patientProfileDtoToPatientMapper,
			AdminProfileDtoToAdministratorMapper adminProfileDtoToAdministratorMapper,
			ModelMapper modelMapper,
			UserContext userContext,
			PasswordEncoder passwordEncoder,
			EmailSender emailSender,
			TokenGenerator tokenGenerator,
			EmailTokenRepository emailTokenRepository,
			UsersRepository usersRepository,
			AdministrativeGenderCodeRepository administrativeGenderCodeRepository,
			SpiritQueryService spiritQueryService,
			DtoToDomainEntityMapper<PatientDto, Patient> patientDtoToPatientMapper,
			MrnService mrnService, PixService pixService); }
AdminServiceImpl extends
		gov.samhsa.consent2share.service.admin.AdminServiceImpl { @Override @Transactional public void updatePatient(PatientProfileDto patientProfileDto) { Patient patient = patientProfileDtoToPatientMapper .map(patientProfileDto); patientRepository.save(patient); spiritQueryService.updatePatient(patientProfileDto); } AdminServiceImpl(
			Integer accountVerificationTokenExpireInHours,
			StaffRepository administratorRepository,
			PatientRepository patientRepository,
			DtoToDomainEntityMapper<PatientProfileDto, Patient> patientProfileDtoToPatientMapper,
			AdminProfileDtoToAdministratorMapper adminProfileDtoToAdministratorMapper,
			ModelMapper modelMapper,
			UserContext userContext,
			PasswordEncoder passwordEncoder,
			EmailSender emailSender,
			TokenGenerator tokenGenerator,
			EmailTokenRepository emailTokenRepository,
			UsersRepository usersRepository,
			AdministrativeGenderCodeRepository administrativeGenderCodeRepository,
			SpiritQueryService spiritQueryService,
			DtoToDomainEntityMapper<PatientDto, Patient> patientDtoToPatientMapper,
			MrnService mrnService, PixService pixService); @Override @Transactional void updatePatient(PatientProfileDto patientProfileDto); @Override AdminCreatePatientResponseDto createPatientAccount(
			BasicPatientAccountDto basicPatientAccountDto); }
AdminServiceImpl extends
		gov.samhsa.consent2share.service.admin.AdminServiceImpl { @Override @Transactional public void updatePatient(PatientProfileDto patientProfileDto) { Patient patient = patientProfileDtoToPatientMapper .map(patientProfileDto); patientRepository.save(patient); spiritQueryService.updatePatient(patientProfileDto); } AdminServiceImpl(
			Integer accountVerificationTokenExpireInHours,
			StaffRepository administratorRepository,
			PatientRepository patientRepository,
			DtoToDomainEntityMapper<PatientProfileDto, Patient> patientProfileDtoToPatientMapper,
			AdminProfileDtoToAdministratorMapper adminProfileDtoToAdministratorMapper,
			ModelMapper modelMapper,
			UserContext userContext,
			PasswordEncoder passwordEncoder,
			EmailSender emailSender,
			TokenGenerator tokenGenerator,
			EmailTokenRepository emailTokenRepository,
			UsersRepository usersRepository,
			AdministrativeGenderCodeRepository administrativeGenderCodeRepository,
			SpiritQueryService spiritQueryService,
			DtoToDomainEntityMapper<PatientDto, Patient> patientDtoToPatientMapper,
			MrnService mrnService, PixService pixService); @Override @Transactional void updatePatient(PatientProfileDto patientProfileDto); @Override AdminCreatePatientResponseDto createPatientAccount(
			BasicPatientAccountDto basicPatientAccountDto);  }