Created
November 10, 2015 17:17
-
-
Save trevorrjohn/14c6bb34c7e97918c7a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PublishSubject<Repo> subject = | |
PublishSubject.create(); | |
when(service.getRepo(anyString()) | |
.thenReturn(subject.asObservable()); | |
activity.onCreate(null); | |
subject.onNext(new Repo("Subject!")); | |
assertThat(repoView).hasText("Subject!"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment