diff --git a/opensrp-chw-malaria/src/main/java/org/smartregister/chw/malaria/presenter/BaseMalariaProfilePresenter.java b/opensrp-chw-malaria/src/main/java/org/smartregister/chw/malaria/presenter/BaseMalariaProfilePresenter.java index 19d2419..0bde527 100644 --- a/opensrp-chw-malaria/src/main/java/org/smartregister/chw/malaria/presenter/BaseMalariaProfilePresenter.java +++ b/opensrp-chw-malaria/src/main/java/org/smartregister/chw/malaria/presenter/BaseMalariaProfilePresenter.java @@ -8,7 +8,7 @@ public class BaseMalariaProfilePresenter { protected MalariaProfileContract.View view; - private MemberObject memberObject; + protected MemberObject memberObject; protected Context context; diff --git a/opensrp-chw-malaria/src/test/java/org/smartregister/presenter/BaseMalariaProfilePresenterTest.java b/opensrp-chw-malaria/src/test/java/org/smartregister/presenter/BaseMalariaProfilePresenterTest.java index 9520354..d17c277 100644 --- a/opensrp-chw-malaria/src/test/java/org/smartregister/presenter/BaseMalariaProfilePresenterTest.java +++ b/opensrp-chw-malaria/src/test/java/org/smartregister/presenter/BaseMalariaProfilePresenterTest.java @@ -13,14 +13,15 @@ public class BaseMalariaProfilePresenterTest { @Mock private MalariaProfileContract.View view = Mockito.mock(MalariaProfileContract.View.class); + @Mock - BaseMalariaProfilePresenter profilePresenter = Mockito.mock(BaseMalariaProfilePresenter.class); + private BaseMalariaProfilePresenter profilePresenter = Mockito.mock(BaseMalariaProfilePresenter.class); @Mock - MemberObject memberObject = Mockito.mock(MemberObject.class); + private MemberObject memberObject = Mockito.mock(MemberObject.class); @Test - public void fillProfileData_doesntCallsSetProfileViewWithDataIfMemberObjectEmpty() { + public void fillProfileDataDoesntCallsSetProfileViewWithDataIfMemberObjectEmpty() { profilePresenter.fillProfileData(memberObject); verify(view, never()).setProfileViewWithData(); }