{"action":"created","comment":{"url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/comments/153734264","pull_request_review_id":79783572,"id":153734264,"diff_hunk":"@@ -53,310 +45,310 @@\n \n     @Before\n     public void setUp() throws Exception {\n-        initMocks(this);\n+        MockitoAnnotations.initMocks(this);\n         service = new ChildService(allBeneficiaries, motherRepository, childRepository, allTimelineEvents, serviceProvidedService, allAlerts);\n     }\n \n     @Test\n     public void shouldUpdateEveryOnlyNewlyBornChildrenWhileRegistering() throws Exception {\n-        Child firstChild = new Child(\"Child X\", \"Mother X\", \"female\", create(\"weight\", \"3\").put(\"immunizationsGiven\", \"bcg opv_0\").map());\n-        Child secondChild = new Child(\"Child Y\", \"Mother X\", \"female\", create(\"weight\", \"4\").put(\"immunizationsGiven\", \"bcg\").map());\n-        FormSubmission submission = mock(FormSubmission.class);\n-        SubForm subForm = mock(SubForm.class);\n-        when(motherRepository.findById(\"Mother X\")).thenReturn(new Mother(\"Mother X\", \"EC 1\", \"TC 1\", \"2012-01-01\"));\n-        when(childRepository.find(\"Child X\")).thenReturn(firstChild);\n-        when(childRepository.find(\"Child Y\")).thenReturn(secondChild);\n-        when(submission.entityId()).thenReturn(\"Mother X\");\n-        when(submission.getFieldValue(\"referenceDate\")).thenReturn(\"2012-01-01\");\n-        when(submission.getFieldValue(\"deliveryPlace\")).thenReturn(\"phc\");\n-        when(submission.getSubFormByName(\"child_registration\")).thenReturn(subForm);\n-        when(subForm.instances()).thenReturn(asList(mapOf(\"id\", \"Child X\"), mapOf(\"id\", \"Child Y\")));\n+        Child firstChild = new Child(\"Child X\", \"Mother X\", \"female\", EasyMap.create(\"weight\", \"3\").put(\"immunizationsGiven\", \"bcg opv_0\").map());\n+        Child secondChild = new Child(\"Child Y\", \"Mother X\", \"female\", EasyMap.create(\"weight\", \"4\").put(\"immunizationsGiven\", \"bcg\").map());\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        SubForm subForm = Mockito.mock(SubForm.class);\n+        Mockito.when(motherRepository.findById(\"Mother X\")).thenReturn(new Mother(\"Mother X\", \"EC 1\", \"TC 1\", \"2012-01-01\"));\n+        Mockito.when(childRepository.find(\"Child X\")).thenReturn(firstChild);\n+        Mockito.when(childRepository.find(\"Child Y\")).thenReturn(secondChild);\n+        Mockito.when(submission.entityId()).thenReturn(\"Mother X\");\n+        Mockito.when(submission.getFieldValue(\"referenceDate\")).thenReturn(\"2012-01-01\");\n+        Mockito.when(submission.getFieldValue(\"deliveryPlace\")).thenReturn(\"phc\");\n+        Mockito.when(submission.getSubFormByName(\"child_registration\")).thenReturn(subForm);\n+        Mockito.when(subForm.instances()).thenReturn(Arrays.asList(EasyMap.mapOf(\"id\", \"Child X\"), EasyMap.mapOf(\"id\", \"Child Y\")));\n \n         service.register(submission);\n \n-        verify(childRepository).find(\"Child X\");\n-        verify(childRepository).find(\"Child Y\");\n-        verify(childRepository).update(firstChild.setIsClosed(false).setDateOfBirth(\"2012-01-01\").setThayiCardNumber(\"TC 1\"));\n-        verify(childRepository).update(secondChild.setIsClosed(false).setDateOfBirth(\"2012-01-01\").setThayiCardNumber(\"TC 1\"));\n-        verify(allTimelineEvents).add(forChildBirthInChildProfile(\"Child X\", \"2012-01-01\", \"3\", \"bcg opv_0\"));\n-        verify(allTimelineEvents).add(forChildBirthInChildProfile(\"Child Y\", \"2012-01-01\", \"4\", \"bcg\"));\n-        verify(allTimelineEvents, times(2)).add(forChildBirthInMotherProfile(\"Mother X\", \"2012-01-01\", \"female\", \"2012-01-01\", \"phc\"));\n-        verify(allTimelineEvents, times(2)).add(forChildBirthInECProfile(\"EC 1\", \"2012-01-01\", \"female\", \"2012-01-01\"));\n-        verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"Child X\", \"bcg\", \"2012-01-01\"));\n-        verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"Child X\", \"opv_0\", \"2012-01-01\"));\n-        verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"Child Y\", \"bcg\", \"2012-01-01\"));\n-        verifyNoMoreInteractions(childRepository);\n-        verifyNoMoreInteractions(allTimelineEvents);\n+        Mockito.verify(childRepository).find(\"Child X\");\n+        Mockito.verify(childRepository).find(\"Child Y\");\n+        Mockito.verify(childRepository).update(firstChild.setIsClosed(false).setDateOfBirth(\"2012-01-01\").setThayiCardNumber(\"TC 1\"));\n+        Mockito.verify(childRepository).update(secondChild.setIsClosed(false).setDateOfBirth(\"2012-01-01\").setThayiCardNumber(\"TC 1\"));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildBirthInChildProfile(\"Child X\", \"2012-01-01\", \"3\", \"bcg opv_0\"));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildBirthInChildProfile(\"Child Y\", \"2012-01-01\", \"4\", \"bcg\"));\n+        Mockito.verify(allTimelineEvents, Mockito.times(2)).add(TimelineEvent.forChildBirthInMotherProfile(\"Mother X\", \"2012-01-01\", \"female\", \"2012-01-01\", \"phc\"));\n+        Mockito.verify(allTimelineEvents, Mockito.times(2)).add(TimelineEvent.forChildBirthInECProfile(\"EC 1\", \"2012-01-01\", \"female\", \"2012-01-01\"));\n+        Mockito.verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"Child X\", \"bcg\", \"2012-01-01\"));\n+        Mockito.verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"Child X\", \"opv_0\", \"2012-01-01\"));\n+        Mockito.verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"Child Y\", \"bcg\", \"2012-01-01\"));\n+        Mockito.verifyNoMoreInteractions(childRepository);\n+        Mockito.verifyNoMoreInteractions(allTimelineEvents);\n     }\n \n     @Test\n     public void shouldDeleteRegisteredChildWhenDeliveryOutcomeIsStillBirth() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        SubForm subForm = mock(SubForm.class);\n-        when(submission.entityId()).thenReturn(\"Mother X\");\n-        when(submission.getFieldValue(\"referenceDate\")).thenReturn(\"2012-01-01\");\n-        when(submission.getFieldValue(\"deliveryPlace\")).thenReturn(\"phc\");\n-        when(submission.getFieldValue(\"deliveryOutcome\")).thenReturn(\"still_birth\");\n-        when(submission.getSubFormByName(\"child_registration\")).thenReturn(subForm);\n-        when(subForm.instances()).thenReturn(asList(mapOf(\"id\", \"Child X\")));\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        SubForm subForm = Mockito.mock(SubForm.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"Mother X\");\n+        Mockito.when(submission.getFieldValue(\"referenceDate\")).thenReturn(\"2012-01-01\");\n+        Mockito.when(submission.getFieldValue(\"deliveryPlace\")).thenReturn(\"phc\");\n+        Mockito.when(submission.getFieldValue(\"deliveryOutcome\")).thenReturn(\"still_birth\");\n+        Mockito.when(submission.getSubFormByName(\"child_registration\")).thenReturn(subForm);\n+        Mockito.when(subForm.instances()).thenReturn(Arrays.asList(EasyMap.mapOf(\"id\", \"Child X\")));\n \n         service.register(submission);\n \n-        verify(childRepository).delete(\"Child X\");\n-        verifyNoMoreInteractions(childRepository);\n-        verifyNoMoreInteractions(allTimelineEvents);\n-        verifyNoMoreInteractions(serviceProvidedService);\n+        Mockito.verify(childRepository).delete(\"Child X\");\n+        Mockito.verifyNoMoreInteractions(childRepository);\n+        Mockito.verifyNoMoreInteractions(allTimelineEvents);\n+        Mockito.verifyNoMoreInteractions(serviceProvidedService);\n     }\n \n     @Test\n     public void shouldUpdateNewlyRegisteredChildrenDuringPNCRegistrationOA() throws Exception {\n-        Child firstChild = new Child(\"Child X\", \"Mother X\", \"female\", create(\"weight\", \"3\").put(\"immunizationsGiven\", \"bcg opv_0\").map());\n-        Child secondChild = new Child(\"Child Y\", \"Mother X\", \"female\", create(\"weight\", \"4\").put(\"immunizationsGiven\", \"bcg\").map());\n+        Child firstChild = new Child(\"Child X\", \"Mother X\", \"female\", EasyMap.create(\"weight\", \"3\").put(\"immunizationsGiven\", \"bcg opv_0\").map());\n+        Child secondChild = new Child(\"Child Y\", \"Mother X\", \"female\", EasyMap.create(\"weight\", \"4\").put(\"immunizationsGiven\", \"bcg\").map());\n         Mother mother = new Mother(\"Mother X\", \"EC X\", \"TC 1\", \"2012-01-02\");\n-        when(motherRepository.findAllCasesForEC(\"EC X\")).thenReturn(asList(mother));\n-        when(childRepository.find(\"Child X\")).thenReturn(firstChild);\n-        when(childRepository.find(\"Child Y\")).thenReturn(secondChild);\n-        FormSubmission submission = mock(FormSubmission.class);\n-        SubForm subForm = mock(SubForm.class);\n-        when(submission.entityId()).thenReturn(\"EC X\");\n-        when(submission.getFieldValue(\"referenceDate\")).thenReturn(\"2012-01-01\");\n-        when(submission.getFieldValue(\"deliveryPlace\")).thenReturn(\"subcenter\");\n-        when(submission.getSubFormByName(\"child_registration_oa\")).thenReturn(subForm);\n-        when(subForm.instances()).thenReturn(asList(mapOf(\"id\", \"Child X\"), mapOf(\"id\", \"Child Y\")));\n+        Mockito.when(motherRepository.findAllCasesForEC(\"EC X\")).thenReturn(Arrays.asList(mother));\n+        Mockito.when(childRepository.find(\"Child X\")).thenReturn(firstChild);\n+        Mockito.when(childRepository.find(\"Child Y\")).thenReturn(secondChild);\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        SubForm subForm = Mockito.mock(SubForm.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"EC X\");\n+        Mockito.when(submission.getFieldValue(\"referenceDate\")).thenReturn(\"2012-01-01\");\n+        Mockito.when(submission.getFieldValue(\"deliveryPlace\")).thenReturn(\"subcenter\");\n+        Mockito.when(submission.getSubFormByName(\"child_registration_oa\")).thenReturn(subForm);\n+        Mockito.when(subForm.instances()).thenReturn(Arrays.asList(EasyMap.mapOf(\"id\", \"Child X\"), EasyMap.mapOf(\"id\", \"Child Y\")));\n \n         service.pncRegistrationOA(submission);\n \n-        verify(childRepository).find(\"Child X\");\n-        verify(childRepository).find(\"Child Y\");\n-        verify(childRepository).update(firstChild.setIsClosed(false).setDateOfBirth(\"2012-01-01\").setThayiCardNumber(\"TC 1\"));\n-        verify(childRepository).update(secondChild.setIsClosed(false).setDateOfBirth(\"2012-01-01\").setThayiCardNumber(\"TC 1\"));\n-        verify(allTimelineEvents).add(forChildBirthInChildProfile(\"Child X\", \"2012-01-01\", \"3\", \"bcg opv_0\"));\n-        verify(allTimelineEvents).add(forChildBirthInChildProfile(\"Child Y\", \"2012-01-01\", \"4\", \"bcg\"));\n-        verify(allTimelineEvents, times(2)).add(forChildBirthInMotherProfile(\"Mother X\", \"2012-01-01\", \"female\", \"2012-01-01\", \"subcenter\"));\n-        verify(allTimelineEvents, times(2)).add(forChildBirthInECProfile(\"EC X\", \"2012-01-01\", \"female\", \"2012-01-01\"));\n-\n-        verify(serviceProvidedService).add(forChildImmunization(\"Child X\", \"bcg\", \"2012-01-01\"));\n-        verify(serviceProvidedService).add(forChildImmunization(\"Child X\", \"opv_0\", \"2012-01-01\"));\n-        verify(serviceProvidedService).add(forChildImmunization(\"Child Y\", \"bcg\", \"2012-01-01\"));\n-        verifyNoMoreInteractions(childRepository);\n+        Mockito.verify(childRepository).find(\"Child X\");\n+        Mockito.verify(childRepository).find(\"Child Y\");\n+        Mockito.verify(childRepository).update(firstChild.setIsClosed(false).setDateOfBirth(\"2012-01-01\").setThayiCardNumber(\"TC 1\"));\n+        Mockito.verify(childRepository).update(secondChild.setIsClosed(false).setDateOfBirth(\"2012-01-01\").setThayiCardNumber(\"TC 1\"));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildBirthInChildProfile(\"Child X\", \"2012-01-01\", \"3\", \"bcg opv_0\"));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildBirthInChildProfile(\"Child Y\", \"2012-01-01\", \"4\", \"bcg\"));\n+        Mockito.verify(allTimelineEvents, Mockito.times(2)).add(TimelineEvent.forChildBirthInMotherProfile(\"Mother X\", \"2012-01-01\", \"female\", \"2012-01-01\", \"subcenter\"));\n+        Mockito.verify(allTimelineEvents, Mockito.times(2)).add(TimelineEvent.forChildBirthInECProfile(\"EC X\", \"2012-01-01\", \"female\", \"2012-01-01\"));\n+\n+        Mockito.verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"Child X\", \"bcg\", \"2012-01-01\"));\n+        Mockito.verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"Child X\", \"opv_0\", \"2012-01-01\"));\n+        Mockito.verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"Child Y\", \"bcg\", \"2012-01-01\"));\n+        Mockito.verifyNoMoreInteractions(childRepository);\n     }\n \n     @Test\n     public void shouldDeleteRegisteredChildWhenPNCRegistrationOAIsHandledAndDeliveryOutcomeIsStillBirth() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        SubForm subForm = mock(SubForm.class);\n-        when(submission.entityId()).thenReturn(\"Mother X\");\n-        when(submission.getFieldValue(\"referenceDate\")).thenReturn(\"2012-01-01\");\n-        when(submission.getFieldValue(\"deliveryPlace\")).thenReturn(\"phc\");\n-        when(submission.getFieldValue(\"deliveryOutcome\")).thenReturn(\"still_birth\");\n-        when(submission.getSubFormByName(\"child_registration_oa\")).thenReturn(subForm);\n-        when(subForm.instances()).thenReturn(asList(mapOf(\"id\", \"Child X\")));\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        SubForm subForm = Mockito.mock(SubForm.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"Mother X\");\n+        Mockito.when(submission.getFieldValue(\"referenceDate\")).thenReturn(\"2012-01-01\");\n+        Mockito.when(submission.getFieldValue(\"deliveryPlace\")).thenReturn(\"phc\");\n+        Mockito.when(submission.getFieldValue(\"deliveryOutcome\")).thenReturn(\"still_birth\");\n+        Mockito.when(submission.getSubFormByName(\"child_registration_oa\")).thenReturn(subForm);\n+        Mockito.when(subForm.instances()).thenReturn(Arrays.asList(EasyMap.mapOf(\"id\", \"Child X\")));\n \n         service.pncRegistrationOA(submission);\n \n-        verify(childRepository).delete(\"Child X\");\n-        verifyNoMoreInteractions(childRepository);\n-        verifyNoMoreInteractions(allTimelineEvents);\n-        verifyNoMoreInteractions(serviceProvidedService);\n+        Mockito.verify(childRepository).delete(\"Child X\");\n+        Mockito.verifyNoMoreInteractions(childRepository);\n+        Mockito.verifyNoMoreInteractions(allTimelineEvents);\n+        Mockito.verifyNoMoreInteractions(serviceProvidedService);\n     }\n \n     @Test\n     public void shouldCheckForEmptyInstanceInTheCaseOfStillBirth() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        SubForm subForm = mock(SubForm.class);\n-        when(submission.entityId()).thenReturn(\"Mother X\");\n-        when(submission.getFieldValue(\"referenceDate\")).thenReturn(\"2012-01-01\");\n-        when(submission.getFieldValue(\"deliveryPlace\")).thenReturn(\"phc\");\n-        when(submission.getFieldValue(\"deliveryOutcome\")).thenReturn(\"still_birth\");\n-        when(submission.getSubFormByName(\"child_registration_oa\")).thenReturn(subForm);\n-        when(subForm.instances()).thenReturn(new ArrayList<Map<String, String>>());\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        SubForm subForm = Mockito.mock(SubForm.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"Mother X\");\n+        Mockito.when(submission.getFieldValue(\"referenceDate\")).thenReturn(\"2012-01-01\");\n+        Mockito.when(submission.getFieldValue(\"deliveryPlace\")).thenReturn(\"phc\");\n+        Mockito.when(submission.getFieldValue(\"deliveryOutcome\")).thenReturn(\"still_birth\");\n+        Mockito.when(submission.getSubFormByName(\"child_registration_oa\")).thenReturn(subForm);\n+        Mockito.when(subForm.instances()).thenReturn(new ArrayList<Map<String, String>>());\n \n         service.pncRegistrationOA(submission);\n \n-        verifyNoMoreInteractions(childRepository);\n-        verifyNoMoreInteractions(allTimelineEvents);\n-        verifyNoMoreInteractions(serviceProvidedService);\n+        Mockito.verifyNoMoreInteractions(childRepository);\n+        Mockito.verifyNoMoreInteractions(allTimelineEvents);\n+        Mockito.verifyNoMoreInteractions(serviceProvidedService);\n     }\n \n     @Test\n     public void shouldAddTimelineEventsWhenChildImmunizationsAreUpdated() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        when(submission.entityId()).thenReturn(\"child id 1\");\n-        when(submission.getFieldValue(\"previousImmunizations\")).thenReturn(\"bcg\");\n-        when(submission.getFieldValue(\"immunizationsGiven\")).thenReturn(\"bcg opv_0 pentavalent_0\");\n-        when(submission.getFieldValue(\"immunizationDate\")).thenReturn(\"2013-01-01\");\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"child id 1\");\n+        Mockito.when(submission.getFieldValue(\"previousImmunizations\")).thenReturn(\"bcg\");\n+        Mockito.when(submission.getFieldValue(\"immunizationsGiven\")).thenReturn(\"bcg opv_0 pentavalent_0\");\n+        Mockito.when(submission.getFieldValue(\"immunizationDate\")).thenReturn(\"2013-01-01\");\n \n         service.updateImmunizations(submission);\n \n-        verify(allTimelineEvents).add(TimelineEvent.forChildImmunization(\"child id 1\", \"opv_0\", \"2013-01-01\"));\n-        verify(allTimelineEvents).add(TimelineEvent.forChildImmunization(\"child id 1\", \"pentavalent_0\", \"2013-01-01\"));\n-        verifyNoMoreInteractions(allTimelineEvents);\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildImmunization(\"child id 1\", \"opv_0\", \"2013-01-01\"));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildImmunization(\"child id 1\", \"pentavalent_0\", \"2013-01-01\"));\n+        Mockito.verifyNoMoreInteractions(allTimelineEvents);\n     }\n \n     @Test\n     public void shouldAddServiceProvidedWhenChildImmunizationsAreUpdated() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        when(submission.entityId()).thenReturn(\"child id 1\");\n-        when(submission.getFieldValue(\"previousImmunizations\")).thenReturn(\"bcg\");\n-        when(submission.getFieldValue(\"immunizationsGiven\")).thenReturn(\"bcg opv_0 pentavalent_0\");\n-        when(submission.getFieldValue(\"immunizationDate\")).thenReturn(\"2013-01-01\");\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"child id 1\");\n+        Mockito.when(submission.getFieldValue(\"previousImmunizations\")).thenReturn(\"bcg\");\n+        Mockito.when(submission.getFieldValue(\"immunizationsGiven\")).thenReturn(\"bcg opv_0 pentavalent_0\");\n+        Mockito.when(submission.getFieldValue(\"immunizationDate\")).thenReturn(\"2013-01-01\");\n \n         service.updateImmunizations(submission);\n \n-        verify(serviceProvidedService).add(new ServiceProvided(\"child id 1\", \"opv_0\", \"2013-01-01\", null));\n-        verify(serviceProvidedService).add(new ServiceProvided(\"child id 1\", \"pentavalent_0\", \"2013-01-01\", null));\n-        verifyNoMoreInteractions(serviceProvidedService);\n+        Mockito.verify(serviceProvidedService).add(new ServiceProvided(\"child id 1\", \"opv_0\", \"2013-01-01\", null));\n+        Mockito.verify(serviceProvidedService).add(new ServiceProvided(\"child id 1\", \"pentavalent_0\", \"2013-01-01\", null));\n+        Mockito.verifyNoMoreInteractions(serviceProvidedService);\n     }\n \n     @Test\n     public void shouldMarkRemindersAsInProcessWhenImmunizationsAreProvided() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        when(submission.entityId()).thenReturn(\"child id 1\");\n-        when(submission.getFieldValue(\"previousImmunizations\")).thenReturn(\"bcg\");\n-        when(submission.getFieldValue(\"immunizationsGiven\")).thenReturn(\"bcg opv_0 pentavalent_0\");\n-        when(submission.getFieldValue(\"immunizationDate\")).thenReturn(\"2013-01-01\");\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"child id 1\");\n+        Mockito.when(submission.getFieldValue(\"previousImmunizations\")).thenReturn(\"bcg\");\n+        Mockito.when(submission.getFieldValue(\"immunizationsGiven\")).thenReturn(\"bcg opv_0 pentavalent_0\");\n+        Mockito.when(submission.getFieldValue(\"immunizationDate\")).thenReturn(\"2013-01-01\");\n \n         service.updateImmunizations(submission);\n \n-        verify(allAlerts).changeAlertStatusToInProcess(\"child id 1\", \"opv_0\");\n-        verify(allAlerts).changeAlertStatusToInProcess(\"child id 1\", \"pentavalent_0\");\n-        verifyNoMoreInteractions(allAlerts);\n+        Mockito.verify(allAlerts).changeAlertStatusToInProcess(\"child id 1\", \"opv_0\");\n+        Mockito.verify(allAlerts).changeAlertStatusToInProcess(\"child id 1\", \"pentavalent_0\");\n+        Mockito.verifyNoMoreInteractions(allAlerts);\n     }\n \n     @Test\n     public void shouldAddTimelineEventWhenChildIsRegisteredForEC() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n         Mother mother = new Mother(\"mother id 1\", \"ec id 1\", \"thayi card number\", \"2013-01-01\");\n-        when(submission.entityId()).thenReturn(\"ec id 1\");\n-        when(submission.getFieldValue(\"motherId\")).thenReturn(\"mother id 1\");\n-        when(submission.getFieldValue(\"childId\")).thenReturn(\"child id 1\");\n-        when(submission.getFieldValue(\"dateOfBirth\")).thenReturn(\"2013-01-02\");\n-        when(submission.getFieldValue(\"gender\")).thenReturn(\"female\");\n-        when(submission.getFieldValue(\"weight\")).thenReturn(\"3\");\n-        when(submission.getFieldValue(\"immunizationsGiven\")).thenReturn(\"bcg opv_0\");\n-        when(submission.getFieldValue(\"bcgDate\")).thenReturn(\"2012-01-06\");\n-        when(submission.getFieldValue(\"opv0Date\")).thenReturn(\"2012-01-07\");\n-        when(submission.getFieldValue(\"shouldCloseMother\")).thenReturn(\"\");\n-        when(allBeneficiaries.findMother(\"mother id 1\")).thenReturn(mother);\n+        Mockito.when(submission.entityId()).thenReturn(\"ec id 1\");\n+        Mockito.when(submission.getFieldValue(\"motherId\")).thenReturn(\"mother id 1\");\n+        Mockito.when(submission.getFieldValue(\"childId\")).thenReturn(\"child id 1\");\n+        Mockito.when(submission.getFieldValue(\"dateOfBirth\")).thenReturn(\"2013-01-02\");\n+        Mockito.when(submission.getFieldValue(\"gender\")).thenReturn(\"female\");\n+        Mockito.when(submission.getFieldValue(\"weight\")).thenReturn(\"3\");\n+        Mockito.when(submission.getFieldValue(\"immunizationsGiven\")).thenReturn(\"bcg opv_0\");\n+        Mockito.when(submission.getFieldValue(\"bcgDate\")).thenReturn(\"2012-01-06\");\n+        Mockito.when(submission.getFieldValue(\"opv0Date\")).thenReturn(\"2012-01-07\");\n+        Mockito.when(submission.getFieldValue(\"shouldCloseMother\")).thenReturn(\"\");\n+        Mockito.when(allBeneficiaries.findMother(\"mother id 1\")).thenReturn(mother);\n \n         service.registerForEC(submission);\n \n-        verify(allBeneficiaries).updateMother(mother.setIsClosed(true));\n-        verify(allTimelineEvents).add(forChildBirthInChildProfile(\"child id 1\", \"2013-01-02\", \"3\", \"bcg opv_0\"));\n-        verify(allTimelineEvents).add(forChildBirthInMotherProfile(\"mother id 1\", \"2013-01-02\", \"female\", null, null));\n-        verify(allTimelineEvents).add(forChildBirthInECProfile(\"ec id 1\", \"2013-01-02\", \"female\", null));\n+        Mockito.verify(allBeneficiaries).updateMother(mother.setIsClosed(true));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildBirthInChildProfile(\"child id 1\", \"2013-01-02\", \"3\", \"bcg opv_0\"));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildBirthInMotherProfile(\"mother id 1\", \"2013-01-02\", \"female\", null, null));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildBirthInECProfile(\"ec id 1\", \"2013-01-02\", \"female\", null));\n \n-        verify(serviceProvidedService).add(forChildImmunization(\"child id 1\", \"bcg\", \"2012-01-06\"));\n-        verify(serviceProvidedService).add(forChildImmunization(\"child id 1\", \"opv_0\", \"2012-01-07\"));\n+        Mockito.verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"child id 1\", \"bcg\", \"2012-01-06\"));\n+        Mockito.verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"child id 1\", \"opv_0\", \"2012-01-07\"));\n     }\n \n     @Test\n     public void shouldNotCloseMotherWhenAnOpenANCAlreadyExistWhileRegisteringAChildForEC() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        when(submission.entityId()).thenReturn(\"ec id 1\");\n-        when(submission.getFieldValue(\"motherId\")).thenReturn(\"mother id 1\");\n-        when(submission.getFieldValue(\"childId\")).thenReturn(\"child id 1\");\n-        when(submission.getFieldValue(\"dateOfBirth\")).thenReturn(\"2013-01-02\");\n-        when(submission.getFieldValue(\"gender\")).thenReturn(\"female\");\n-        when(submission.getFieldValue(\"weight\")).thenReturn(\"3\");\n-        when(submission.getFieldValue(\"immunizationsGiven\")).thenReturn(\"bcg opv_0\");\n-        when(submission.getFieldValue(\"bcgDate\")).thenReturn(\"2012-01-06\");\n-        when(submission.getFieldValue(\"opv0Date\")).thenReturn(\"2012-01-07\");\n-        when(submission.getFieldValue(\"shouldCloseMother\")).thenReturn(\"false\");\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"ec id 1\");\n+        Mockito.when(submission.getFieldValue(\"motherId\")).thenReturn(\"mother id 1\");\n+        Mockito.when(submission.getFieldValue(\"childId\")).thenReturn(\"child id 1\");\n+        Mockito.when(submission.getFieldValue(\"dateOfBirth\")).thenReturn(\"2013-01-02\");\n+        Mockito.when(submission.getFieldValue(\"gender\")).thenReturn(\"female\");\n+        Mockito.when(submission.getFieldValue(\"weight\")).thenReturn(\"3\");\n+        Mockito.when(submission.getFieldValue(\"immunizationsGiven\")).thenReturn(\"bcg opv_0\");\n+        Mockito.when(submission.getFieldValue(\"bcgDate\")).thenReturn(\"2012-01-06\");\n+        Mockito.when(submission.getFieldValue(\"opv0Date\")).thenReturn(\"2012-01-07\");\n+        Mockito.when(submission.getFieldValue(\"shouldCloseMother\")).thenReturn(\"false\");\n \n         service.registerForEC(submission);\n \n-        verify(allTimelineEvents).add(forChildBirthInChildProfile(\"child id 1\", \"2013-01-02\", \"3\", \"bcg opv_0\"));\n-        verify(allTimelineEvents).add(forChildBirthInMotherProfile(\"mother id 1\", \"2013-01-02\", \"female\", null, null));\n-        verify(allTimelineEvents).add(forChildBirthInECProfile(\"ec id 1\", \"2013-01-02\", \"female\", null));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildBirthInChildProfile(\"child id 1\", \"2013-01-02\", \"3\", \"bcg opv_0\"));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildBirthInMotherProfile(\"mother id 1\", \"2013-01-02\", \"female\", null, null));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildBirthInECProfile(\"ec id 1\", \"2013-01-02\", \"female\", null));\n \n-        verify(serviceProvidedService).add(forChildImmunization(\"child id 1\", \"bcg\", \"2012-01-06\"));\n-        verify(serviceProvidedService).add(forChildImmunization(\"child id 1\", \"opv_0\", \"2012-01-07\"));\n+        Mockito.verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"child id 1\", \"bcg\", \"2012-01-06\"));\n+        Mockito.verify(serviceProvidedService).add(ServiceProvided.forChildImmunization(\"child id 1\", \"opv_0\", \"2012-01-07\"));\n     }\n \n     @Test\n     public void shouldAddPNCVisitTimelineEventWhenPNCVisitHappens() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        SubForm subForm = mock(SubForm.class);\n-        when(submission.entityId()).thenReturn(\"mother id 1\");\n-        when(submission.getFieldValue(\"pncVisitDay\")).thenReturn(\"2\");\n-        when(submission.getFieldValue(\"pncVisitDate\")).thenReturn(\"2012-01-01\");\n-        when(submission.getSubFormByName(\"child_pnc_visit\")).thenReturn(subForm);\n-        when(subForm.instances()).thenReturn(\n-                asList(\n-                        create(\"id\", \"child id 1\")\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        SubForm subForm = Mockito.mock(SubForm.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"mother id 1\");\n+        Mockito.when(submission.getFieldValue(\"pncVisitDay\")).thenReturn(\"2\");\n+        Mockito.when(submission.getFieldValue(\"pncVisitDate\")).thenReturn(\"2012-01-01\");\n+        Mockito.when(submission.getSubFormByName(\"child_pnc_visit\")).thenReturn(subForm);\n+        Mockito.when(subForm.instances()).thenReturn(\n+                Arrays.asList(\n+                        EasyMap.create(\"id\", \"child id 1\")\n                                 .put(\"weight\", \"3\")\n                                 .put(\"temperature\", \"98\")\n                                 .map(),\n-                        create(\"id\", \"child id 2\")\n+                        EasyMap.create(\"id\", \"child id 2\")\n                                 .put(\"weight\", \"4\")\n                                 .put(\"temperature\", \"98.1\")\n                                 .map()));\n \n         service.pncVisitHappened(submission);\n \n-        verify(allTimelineEvents).add(TimelineEvent.forChildPNCVisit(\"child id 1\", \"2\", \"2012-01-01\", \"3\", \"98\"));\n-        verify(allTimelineEvents).add(TimelineEvent.forChildPNCVisit(\"child id 2\", \"2\", \"2012-01-01\", \"4\", \"98.1\"));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildPNCVisit(\"child id 1\", \"2\", \"2012-01-01\", \"3\", \"98\"));\n+        Mockito.verify(allTimelineEvents).add(TimelineEvent.forChildPNCVisit(\"child id 2\", \"2\", \"2012-01-01\", \"4\", \"98.1\"));\n     }\n \n     @Test\n     public void shouldHandleStillBirthWhenPNCVisitHappens() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        SubForm subForm = mock(SubForm.class);\n-        when(submission.entityId()).thenReturn(\"mother id 1\");\n-        when(submission.getFieldValue(\"pncVisitDay\")).thenReturn(\"2\");\n-        when(submission.getFieldValue(\"pncVisitDate\")).thenReturn(\"2012-01-01\");\n-        when(submission.getFieldValue(\"deliveryOutcome\")).thenReturn(\"still_birth\");\n-        when(submission.getSubFormByName(\"child_pnc_visit\")).thenReturn(subForm);\n-        when(subForm.instances()).thenReturn(asList(create(\"id\", \"child id 1\").map()));\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        SubForm subForm = Mockito.mock(SubForm.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"mother id 1\");\n+        Mockito.when(submission.getFieldValue(\"pncVisitDay\")).thenReturn(\"2\");\n+        Mockito.when(submission.getFieldValue(\"pncVisitDate\")).thenReturn(\"2012-01-01\");\n+        Mockito.when(submission.getFieldValue(\"deliveryOutcome\")).thenReturn(\"still_birth\");\n+        Mockito.when(submission.getSubFormByName(\"child_pnc_visit\")).thenReturn(subForm);\n+        Mockito.when(subForm.instances()).thenReturn(Arrays.asList(EasyMap.create(\"id\", \"child id 1\").map()));\n \n         service.pncVisitHappened(submission);\n \n-        verify(childRepository).delete(\"child id 1\");\n-        verifyNoMoreInteractions(allTimelineEvents);\n+        Mockito.verify(childRepository).delete(\"child id 1\");\n+        Mockito.verifyNoMoreInteractions(allTimelineEvents);\n     }\n \n     @Test\n     public void shouldAddPNCVisitServiceProvidedWhenPNCVisitHappens() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        SubForm subForm = mock(SubForm.class);\n-        when(submission.entityId()).thenReturn(\"mother id 1\");\n-        when(submission.getFieldValue(\"pncVisitDay\")).thenReturn(\"2\");\n-        when(submission.getFieldValue(\"pncVisitDate\")).thenReturn(\"2012-01-01\");\n-        when(submission.getSubFormByName(\"child_pnc_visit\")).thenReturn(subForm);\n-        when(subForm.instances()).thenReturn(\n-                asList(mapOf(\"id\", \"child id 1\"), mapOf(\"id\", \"child id 2\")));\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        SubForm subForm = Mockito.mock(SubForm.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"mother id 1\");\n+        Mockito.when(submission.getFieldValue(\"pncVisitDay\")).thenReturn(\"2\");\n+        Mockito.when(submission.getFieldValue(\"pncVisitDate\")).thenReturn(\"2012-01-01\");\n+        Mockito.when(submission.getSubFormByName(\"child_pnc_visit\")).thenReturn(subForm);\n+        Mockito.when(subForm.instances()).thenReturn(\n+                Arrays.asList(EasyMap.mapOf(\"id\", \"child id 1\"), EasyMap.mapOf(\"id\", \"child id 2\")));\n \n         service.pncVisitHappened(submission);\n \n-        verify(serviceProvidedService).add(new ServiceProvided(\"child id 1\", \"PNC\", \"2012-01-01\", mapOf(\"day\", \"2\")));\n-        verify(serviceProvidedService).add(new ServiceProvided(\"child id 2\", \"PNC\", \"2012-01-01\", mapOf(\"day\", \"2\")));\n+        Mockito.verify(serviceProvidedService).add(new ServiceProvided(\"child id 1\", \"PNC\", \"2012-01-01\", EasyMap.mapOf(\"day\", \"2\")));\n+        Mockito.verify(serviceProvidedService).add(new ServiceProvided(\"child id 2\", \"PNC\", \"2012-01-01\", EasyMap.mapOf(\"day\", \"2\")));\n     }\n \n     @Test\n     public void shouldCloseChildRecordForDeleteChildAction() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-        when(submission.entityId()).thenReturn(\"child id 1\");\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+        Mockito.when(submission.entityId()).thenReturn(\"child id 1\");\n \n         service.close(submission);\n \n-        verify(allBeneficiaries).closeChild(\"child id 1\");\n+        Mockito.verify(allBeneficiaries).closeChild(\"child id 1\");\n     }\n \n     @Test\n     public void shouldUpdateIllnessForUpdateIllnessAction() throws Exception {\n-        FormSubmission submission = mock(FormSubmission.class);\n-\n-        when(submission.entityId()).thenReturn(\"child id 1\");\n-        when(submission.getFieldValue(\"submissionDate\")).thenReturn(\"2012-01-02\");\n-        when(submission.getFieldValue(\"sickVisitDate\")).thenReturn(\"2012-01-01\");\n-        when(submission.getFieldValue(\"childSigns\")).thenReturn(\"child signs\");\n-        when(submission.getFieldValue(\"childSignsOther\")).thenReturn(\"child signs other\");\n-        when(submission.getFieldValue(\"reportChildDisease\")).thenReturn(\"report child disease\");\n-        when(submission.getFieldValue(\"reportChildDiseaseOther\")).thenReturn(\"report child disease other\");\n-        when(submission.getFieldValue(\"reportChildDiseaseDate\")).thenReturn(null);\n-        when(submission.getFieldValue(\"reportChildDiseasePlace\")).thenReturn(\"report child disease place\");\n-        when(submission.getFieldValue(\"childReferral\")).thenReturn(\"child referral\");\n+        FormSubmission submission = Mockito.mock(FormSubmission.class);\n+\n+        Mockito.when(submission.entityId()).thenReturn(\"child id 1\");\n+        Mockito.when(submission.getFieldValue(\"submissionDate\")).thenReturn(\"2012-01-02\");\n+        Mockito.when(submission.getFieldValue(\"sickVisitDate\")).thenReturn(\"2012-01-01\");\n+        Mockito.when(submission.getFieldValue(\"childSigns\")).thenReturn(\"child signs\");","path":"opensrp-app/src/test/java/org/smartregister/service/ChildServiceTest.java","position":526,"original_position":526,"commit_id":"24fe5f7d6a13d1795caba75b079c84c533e7df16","original_commit_id":"24fe5f7d6a13d1795caba75b079c84c533e7df16","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [The String \"childSigns\" appears 2 times in the file.](https://www.codacy.com/app/OpenSRP/opensrp-client-core/pullRequest?prid=1115080)","created_at":"2017-11-29T09:38:53Z","updated_at":"2017-11-29T09:38:53Z","html_url":"https://github.com/OpenSRP/opensrp-client-core/pull/34#discussion_r153734264","pull_request_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/34","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/comments/153734264"},"html":{"href":"https://github.com/OpenSRP/opensrp-client-core/pull/34#discussion_r153734264"},"pull_request":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/34","id":155266105,"html_url":"https://github.com/OpenSRP/opensrp-client-core/pull/34","diff_url":"https://github.com/OpenSRP/opensrp-client-core/pull/34.diff","patch_url":"https://github.com/OpenSRP/opensrp-client-core/pull/34.patch","issue_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/34","number":34,"state":"open","locked":false,"title":"Issue17","user":{"login":"kaderchowdhury","id":710158,"avatar_url":"https://avatars3.githubusercontent.com/u/710158?v=4","gravatar_id":"","url":"https://api.github.com/users/kaderchowdhury","html_url":"https://github.com/kaderchowdhury","followers_url":"https://api.github.com/users/kaderchowdhury/followers","following_url":"https://api.github.com/users/kaderchowdhury/following{/other_user}","gists_url":"https://api.github.com/users/kaderchowdhury/gists{/gist_id}","starred_url":"https://api.github.com/users/kaderchowdhury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaderchowdhury/subscriptions","organizations_url":"https://api.github.com/users/kaderchowdhury/orgs","repos_url":"https://api.github.com/users/kaderchowdhury/repos","events_url":"https://api.github.com/users/kaderchowdhury/events{/privacy}","received_events_url":"https://api.github.com/users/kaderchowdhury/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-29T07:19:58Z","updated_at":"2017-11-29T09:38:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18dd973709bf1cc1d35e37f53b5663879332fef8","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/34/commits","review_comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/34/comments","review_comment_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/34/comments","statuses_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/statuses/24fe5f7d6a13d1795caba75b079c84c533e7df16","head":{"label":"OpenSRP:issue17-kk","ref":"issue17-kk","sha":"24fe5f7d6a13d1795caba75b079c84c533e7df16","user":{"login":"OpenSRP","id":7898027,"avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"repo":{"id":97621321,"name":"opensrp-client-core","full_name":"OpenSRP/opensrp-client-core","owner":{"login":"OpenSRP","id":7898027,"avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenSRP/opensrp-client-core","description":"Core OpenSRP Android client library","fork":false,"url":"https://api.github.com/repos/OpenSRP/opensrp-client-core","forks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/forks","keys_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/teams","hooks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/hooks","issue_events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/events","assignees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/tags","blobs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/languages","stargazers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/stargazers","contributors_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/contributors","subscribers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/subscribers","subscription_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/subscription","commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/merges","archive_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/downloads","issues_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/labels{/name}","releases_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/releases{/id}","deployments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/deployments","created_at":"2017-07-18T16:34:57Z","updated_at":"2017-11-10T02:19:56Z","pushed_at":"2017-11-29T09:27:36Z","git_url":"git://github.com/OpenSRP/opensrp-client-core.git","ssh_url":"git@github.com:OpenSRP/opensrp-client-core.git","clone_url":"https://github.com/OpenSRP/opensrp-client-core.git","svn_url":"https://github.com/OpenSRP/opensrp-client-core","homepage":"http://smartregister.org/","size":11623,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":3,"open_issues":8,"watchers":3,"default_branch":"master"}},"base":{"label":"OpenSRP:master","ref":"master","sha":"2903fa5aeb2a8cccc5f9180483d2882a54a76ef1","user":{"login":"OpenSRP","id":7898027,"avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"repo":{"id":97621321,"name":"opensrp-client-core","full_name":"OpenSRP/opensrp-client-core","owner":{"login":"OpenSRP","id":7898027,"avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenSRP/opensrp-client-core","description":"Core OpenSRP Android client library","fork":false,"url":"https://api.github.com/repos/OpenSRP/opensrp-client-core","forks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/forks","keys_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/teams","hooks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/hooks","issue_events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/events","assignees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/tags","blobs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/languages","stargazers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/stargazers","contributors_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/contributors","subscribers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/subscribers","subscription_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/subscription","commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/merges","archive_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/downloads","issues_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/labels{/name}","releases_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/releases{/id}","deployments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/deployments","created_at":"2017-07-18T16:34:57Z","updated_at":"2017-11-10T02:19:56Z","pushed_at":"2017-11-29T09:27:36Z","git_url":"git://github.com/OpenSRP/opensrp-client-core.git","ssh_url":"git@github.com:OpenSRP/opensrp-client-core.git","clone_url":"https://github.com/OpenSRP/opensrp-client-core.git","svn_url":"https://github.com/OpenSRP/opensrp-client-core","homepage":"http://smartregister.org/","size":11623,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":3,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/34"},"html":{"href":"https://github.com/OpenSRP/opensrp-client-core/pull/34"},"issue":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/34"},"comments":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/statuses/24fe5f7d6a13d1795caba75b079c84c533e7df16"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}