From d80a0fdc9e29a82ca9b74a6eb46b76e6f503b445 Mon Sep 17 00:00:00 2001 From: hilpitome Date: Tue, 27 Apr 2021 18:24:11 +0300 Subject: [PATCH] unit test exception behavior for ContactUtil.getContactSchedule --- .../test/java/org/smartregister/chw/util/ContactUtilTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opensrp-chw/src/test/java/org/smartregister/chw/util/ContactUtilTest.java b/opensrp-chw/src/test/java/org/smartregister/chw/util/ContactUtilTest.java index af9bfb85a8..c90ba6ffc5 100644 --- a/opensrp-chw/src/test/java/org/smartregister/chw/util/ContactUtilTest.java +++ b/opensrp-chw/src/test/java/org/smartregister/chw/util/ContactUtilTest.java @@ -67,6 +67,8 @@ public void testGetContactWeeksVisits() { Map contacts = ContactUtil.getContactWeeks(false, lastContact, lastMenstrualPeriod); TestCase.assertNotNull(contacts); + Map contactWithExption = ContactUtil.getContactWeeks(false, null, lastMenstrualPeriod); + TestCase.assertEquals(0,contactWithExption.size()); //assertTrue(isEqual(contacts, expectedResult)); }