@Test(expected = NullPointerException.class) public void testThrowsNullPointerExceptionWhenSelectedRepositoryIsNull() { viewModel.selectRepository(null); }
public void selectRepository(@NonNull final GitHubRepository repository) { checkNotNull(repository); this.selectRepository.onNext(repository); }
RepositoriesViewModel extends AbstractViewModel { public void selectRepository(@NonNull final GitHubRepository repository) { checkNotNull(repository); this.selectRepository.onNext(repository); } }
RepositoriesViewModel extends AbstractViewModel { public void selectRepository(@NonNull final GitHubRepository repository) { checkNotNull(repository); this.selectRepository.onNext(repository); } RepositoriesViewModel(@NonNull final GetGitHubRepositorySearch getGitHubRepositorySearch,
                                 @NonNull final GetGitHubRepository getGitHubRepository); }
RepositoriesViewModel extends AbstractViewModel { public void selectRepository(@NonNull final GitHubRepository repository) { checkNotNull(repository); this.selectRepository.onNext(repository); } RepositoriesViewModel(@NonNull final GetGitHubRepositorySearch getGitHubRepositorySearch,
                                 @NonNull final GetGitHubRepository getGitHubRepository); @NonNull Observable<GitHubRepository> getSelectRepository(); @NonNull Observable<List<GitHubRepository>> getRepositories(); @NonNull Observable<ProgressStatus> getNetworkRequestStatusText(); void setSearchString(@NonNull final String searchString); void selectRepository(@NonNull final GitHubRepository repository); @Override void subscribeToDataStoreInternal(@NonNull final CompositeDisposable compositeDisposable); }
RepositoriesViewModel extends AbstractViewModel { public void selectRepository(@NonNull final GitHubRepository repository) { checkNotNull(repository); this.selectRepository.onNext(repository); } RepositoriesViewModel(@NonNull final GetGitHubRepositorySearch getGitHubRepositorySearch,
                                 @NonNull final GetGitHubRepository getGitHubRepository); @NonNull Observable<GitHubRepository> getSelectRepository(); @NonNull Observable<List<GitHubRepository>> getRepositories(); @NonNull Observable<ProgressStatus> getNetworkRequestStatusText(); void setSearchString(@NonNull final String searchString); void selectRepository(@NonNull final GitHubRepository repository); @Override void subscribeToDataStoreInternal(@NonNull final CompositeDisposable compositeDisposable);  }