public void testFilterByProcedure() throws Exception { filter = new PersonnelReportFilter(PersonnelReportFilterType.DLHCP, "Beaker Beaker", factory); List<PatientBean> res = filter.filter(allPatients); assertEquals(2, res.size()); assertTrue(res.get(0).getMID() == 22L); assertTrue(res.get(1).getMID() == 23L); }
public void testFilterByProcedureNoResult() { filter = new PersonnelReportFilter(PersonnelReportFilterType.DLHCP, "Dalpe", factory); List<PatientBean> res = filter.filter(allPatients); assertTrue(res.isEmpty()); }