@Test(expected = NullPointerException.class) public void testThrowsNullPointerExceptionWhenNetworkStatusIsNull() { viewModel.setNetworkStatusText(null); }
void setNetworkStatusText(@NonNull final ProgressStatus status) { checkNotNull(status); networkRequestStatusText.onNext(status); }
RepositoriesViewModel extends AbstractViewModel { void setNetworkStatusText(@NonNull final ProgressStatus status) { checkNotNull(status); networkRequestStatusText.onNext(status); } }
RepositoriesViewModel extends AbstractViewModel { void setNetworkStatusText(@NonNull final ProgressStatus status) { checkNotNull(status); networkRequestStatusText.onNext(status); } RepositoriesViewModel(@NonNull final GetGitHubRepositorySearch getGitHubRepositorySearch,
                                 @NonNull final GetGitHubRepository getGitHubRepository); }
RepositoriesViewModel extends AbstractViewModel { void setNetworkStatusText(@NonNull final ProgressStatus status) { checkNotNull(status); networkRequestStatusText.onNext(status); } 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 { void setNetworkStatusText(@NonNull final ProgressStatus status) { checkNotNull(status); networkRequestStatusText.onNext(status); } 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);  }