Created
October 6, 2019 17:19
-
-
Save talosdev/dea47ac621913e3d44f169c018dc313c to your computer and use it in GitHub Desktop.
Revisions
-
talosdev created this gist
Oct 6, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ @Test fun `observable that throws error to single with firstOrError`() { val observable = Observable.error<Int>(RuntimeException("Exception while emitting Ints")) assertObservableToSingle(observable, { firstOrError() } ) { assertError(java.lang.RuntimeException::class.java) } }