From c2b839bd417863204bf89221eb050338e06bf672 Mon Sep 17 00:00:00 2001 From: vend Date: Wed, 6 Oct 2021 17:02:12 +0500 Subject: [PATCH] vaccine constructor test added for coverage --- .../org/smartregister/immunization/domain/VaccineTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opensrp-immunization/src/test/java/org/smartregister/immunization/domain/VaccineTest.java b/opensrp-immunization/src/test/java/org/smartregister/immunization/domain/VaccineTest.java index 203e15e1..2035e6fb 100644 --- a/opensrp-immunization/src/test/java/org/smartregister/immunization/domain/VaccineTest.java +++ b/opensrp-immunization/src/test/java/org/smartregister/immunization/domain/VaccineTest.java @@ -34,8 +34,13 @@ public class VaccineTest extends BaseUnitTest { @Test public void assertDefaultConstructorsCreateNonNullObjectOnInstantiation() { junit.framework.Assert.assertNotNull(new Vaccine()); + junit.framework.Assert.assertNotNull(new Vaccine(0l, BASEENTITYID, NAME, 0, new Date(), + ANMID, LOCATIONID, SYNCSTATUS, HIA2STATUS, 0l, EVENTID, FORMSUBMISSIONID)); junit.framework.Assert.assertNotNull(new Vaccine(0l, BASEENTITYID, NAME, 0, new Date(), ANMID, LOCATIONID, SYNCSTATUS, HIA2STATUS, 0l, EVENTID, FORMSUBMISSIONID, 0)); + junit.framework.Assert.assertNotNull(new Vaccine(0l, BASEENTITYID, PROGRAMCLIENTID, NAME, 0, new Date(), + ANMID, LOCATIONID, SYNCSTATUS, HIA2STATUS, 0l, EVENTID, FORMSUBMISSIONID, 0, new Date(), 1)); + junit.framework.Assert.assertNotNull(new Vaccine(0l, BASEENTITYID, PROGRAMCLIENTID, NAME, 0, new Date(), ANMID, LOCATIONID, SYNCSTATUS, HIA2STATUS, 0l, EVENTID, FORMSUBMISSIONID, 0, new Date(), 1,1)); }