RepositoriesPresenter extends BasePresenter<RepositoriesPresenter.ViewContract> implements Bundleable { public boolean didDownloadAll() { return downloadedAll; } @Inject  RepositoriesPresenter(); boolean didDownloadAll(); List<GithubRepo> getRepositories(); void openRepository(GithubRepo githubRepo); void downloadMore(); @Override Bundle toBundle(); @Override void fromBundle(@Nullable Bundle bundle);  }
@Test public void didDownloadAllTrue() throws Exception { repositoriesPresenter.downloadedAll = true; assertThat(repositoriesPresenter.didDownloadAll()).isTrue(); }
@Test public void didDownloadAllFalse() throws Exception { repositoriesPresenter.downloadedAll = false; assertThat(repositoriesPresenter.didDownloadAll()).isFalse(); }