From 38ab3386a4d19094f88634a54e3b1c2c2262882c Mon Sep 17 00:00:00 2001
From: ahmadaldhalaan <46313624+ahmadaldhalaan@users.noreply.github.com>
Date: Wed, 18 Nov 2020 14:33:15 +1100
Subject: [PATCH] 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.

---
 .../csc/itrust/unit/report/DemographicReportFilterTest.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/iTrust/test/edu/ncsu/csc/itrust/unit/report/DemographicReportFilterTest.java b/iTrust/test/edu/ncsu/csc/itrust/unit/report/DemographicReportFilterTest.java
index 0303c0c..42fbfcd 100644
--- a/iTrust/test/edu/ncsu/csc/itrust/unit/report/DemographicReportFilterTest.java
+++ b/iTrust/test/edu/ncsu/csc/itrust/unit/report/DemographicReportFilterTest.java
@@ -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);
-- 
GitLab