Skip to content
Snippets Groups Projects
Commit 38ab3386 authored by ahmadaldhalaan's avatar ahmadaldhalaan
Browse files

Updated testFilterByGender unit test to reflect the addition of three dead...

Updated testFilterByGender unit test to reflect the addition of three dead female patients. The test was failing as female patients went from 24 to 27.
parent 76889cca
No related branches found
No related tags found
2 merge requests!7Uc20,!2UC20 Data Access Object Completed
......@@ -225,10 +225,11 @@ public class DemographicReportFilterTest extends TestCase {
assertTrue(res.isEmpty());
}
//Updated assertEquals(24, res.size()) to assertEquals(27, res.size()) to reflect the 3 female patients added for UC20
public void testFilterByGender() throws Exception {
filter = new DemographicReportFilter(DemographicReportFilterType.GENDER, "Female", factory);
List<PatientBean> res = filter.filter(allPatients);
assertEquals(24, res.size());
assertEquals(27, res.size());
assertTrue(res.get(0).getMID() == 1L);
assertTrue(res.get(1).getMID() == 5L);
assertTrue(res.get(2).getMID() == 6L);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment