Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save talosdev/94336744d5b6e7b05e58e7fee0c5eb25 to your computer and use it in GitHub Desktop.
Save talosdev/94336744d5b6e7b05e58e7fee0c5eb25 to your computer and use it in GitHub Desktop.
@Test
fun `hot observable to single with firstOrError with extracted method`() {
val observable = Observable.fromIterable<Int>((1..5).toList())
assertObservableToSingle(observable, { firstOrError() } ) {
assertComplete()
assertValue(1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment