@Test(expected = NullPointerException.class) public void testThrowsNullPointerExceptionWhenSearchStringIsNull() { viewModel.setSearchString(null); }
public void setSearchString(@NonNull final String searchString) { checkNotNull(searchString); this.searchString.onNext(searchString); }
RepositoriesViewModel extends AbstractViewModel { public void setSearchString(@NonNull final String searchString) { checkNotNull(searchString); this.searchString.onNext(searchString); } }
RepositoriesViewModel extends AbstractViewModel { public void setSearchString(@NonNull final String searchString) { checkNotNull(searchString); this.searchString.onNext(searchString); } RepositoriesViewModel(@NonNull final GetGitHubRepositorySearch getGitHubRepositorySearch,
                                 @NonNull final GetGitHubRepository getGitHubRepository); }
RepositoriesViewModel extends AbstractViewModel { public void setSearchString(@NonNull final String searchString) { checkNotNull(searchString); this.searchString.onNext(searchString); } 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 setSearchString(@NonNull final String searchString) { checkNotNull(searchString); this.searchString.onNext(searchString); } 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);  }