From 875e3db56799275850da4211cfa5eccb7c254f3c Mon Sep 17 00:00:00 2001 From: Denis Rwelamila Date: Tue, 2 Jul 2019 09:42:29 +0300 Subject: [PATCH] code cleanup --- .../chw/malaria/presenter/BaseMalariaProfilePresenter.java | 2 +- .../presenter/BaseMalariaProfilePresenterTest.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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(); }