RepoListPresenter extends SingleViewPresenter<RepoListView> { public boolean isDataLoaded() { return mIsDataLoaded; } @Inject  RepoListPresenter(RepoService repoService); boolean isDataLoaded(); void loadData(); void createRepo();  }
@Test public void testRepoEditPresenter() throws InterruptedException { assertNotNull(repoEditPresenter); RepoEditView mockedRepoEditView = mock(RepoEditView.class); when(mockedRepoEditView.getRepoId()).thenReturn(1L); repoEditPresenter.setView(mockedRepoEditView); Thread.sleep(1000); assertTrue(repoEditPresenter.isDataLoaded()); }