Created
October 6, 2019 17:19
-
-
Save talosdev/dea47ac621913e3d44f169c018dc313c 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
@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) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment