Last active
November 10, 2015 17:11
-
-
Save trevorrjohn/b3cdb51de53e2be13048 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
TestSub<Repo> testSub = new TestSub(); | |
when(service.getRepo(anyString())) | |
.thenReturn(Observable.onCreate(testSub)); | |
activity.onCreate(null); | |
testSub.onNext(new Repo("RxAndroid")); | |
assertThat(repoView).hasText("RxAndroid"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment