Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Fix apiary presenter test @143
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmigloz committed Jan 11, 2017
1 parent ce1a216 commit 9f78cf1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public class ApiaryPresenterTest {
@Mock
private ApiaryContract.ApiaryHivesView apiaryHivesView;

@Mock
private ApiaryContract.ApiaryInfoView apiaryInfoView;

private ApiaryPresenter apiaryPresenter;

@Captor
Expand All @@ -67,7 +70,8 @@ public void setupHivesPresenter() {
MockitoAnnotations.initMocks(this);

// Get a reference to the class under test
apiaryPresenter = new ApiaryPresenter(goBeesRepository, apiaryHivesView, APIARY_ID);
apiaryPresenter = new ApiaryPresenter(goBeesRepository,
apiaryHivesView, apiaryInfoView, APIARY_ID);

// The presenter won't update the view unless it's active
when(apiaryHivesView.isActive()).thenReturn(true);
Expand Down

0 comments on commit 9f78cf1

Please sign in to comment.