Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
whoisladleo committed Jul 2, 2019
1 parent 38afcea commit 875e3db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class BaseMalariaProfilePresenter {
protected MalariaProfileContract.View view;
private MemberObject memberObject;
protected MemberObject memberObject;
protected Context context;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 875e3db

Please sign in to comment.