PatientListServiceImpl implements PatientListService { @Override public List<PatientList> getAllPatientList(boolean includeRetired) { return dao.getAllPatientList(includeRetired); }  @Override void setPatientListDAO(PatientListDAO dao); @Override PatientList savePatientList(PatientList patientList); @Override PatientList getPatientList(Integer id); @Override List<PatientList> getPatientListByName(String name); @Override PatientList getPatientListByUuid(String uuid); @Override List<PatientList> getPatientListByEncounterType(EncounterType encounterType); @Override List<PatientList> getAllPatientList(boolean includeRetired); @Override List<Encounter> getEncountersInPatientList(PatientList patientList); @Override List<Patient> getPatientsInPatientList(PatientList patientList); @Override PatientList updatePatientList(PatientList patientList); @Override void deletePatientList(PatientList patientList); @Override void onStartup(); @Override void onShutdown();  }
@Test public void testGetAllPatientList_shouldReturnUnretiredPatientList() { List<PatientList> allPatientList = s.getAllPatientList(false); assertEquals(allPatientList.size(), 2); }
@Test public void testGetAllPatientList_shouldReturnAllPatientListIncludingRetired() { List<PatientList> allPatientList = s.getAllPatientList(true); assertEquals(allPatientList.size(), 3); }