@Test public void shouldReturnTrueWhenPatientDispensationsWereSaved() throws LMISException { ptvProgram.setId(1L); PatientDispensation patientDispensation = createPatientDispensationObject(); PatientDispensation patientDispensation2 = createPatientDispensationObject(); patientDispensation.setPtvProgram(ptvProgram); patientDispensation2.setPtvProgram(ptvProgram); boolean isSaved = patientDispensationRepository.save(newArrayList(patientDispensation, patientDispensation2)); assertThat(isSaved, is(true)); }
public boolean save(List<PatientDispensation> patientDispensations) throws LMISException { return patientDispensationGenericDao.create(patientDispensations); }
PatientDispensationRepository { public boolean save(List<PatientDispensation> patientDispensations) throws LMISException { return patientDispensationGenericDao.create(patientDispensations); } }
PatientDispensationRepository { public boolean save(List<PatientDispensation> patientDispensations) throws LMISException { return patientDispensationGenericDao.create(patientDispensations); } @Inject  PatientDispensationRepository(Context context); }
PatientDispensationRepository { public boolean save(List<PatientDispensation> patientDispensations) throws LMISException { return patientDispensationGenericDao.create(patientDispensations); } @Inject  PatientDispensationRepository(Context context); boolean save(List<PatientDispensation> patientDispensations); List<PatientDispensation> getAllByProgramId(final long id); }
PatientDispensationRepository { public boolean save(List<PatientDispensation> patientDispensations) throws LMISException { return patientDispensationGenericDao.create(patientDispensations); } @Inject  PatientDispensationRepository(Context context); boolean save(List<PatientDispensation> patientDispensations); List<PatientDispensation> getAllByProgramId(final long id);  }