Skip to content

Fail with message #1

Description

@oakesja

I think it would be useful if there was a fail method that would either compare the error that was thrown or the message. Something similar to the following:

assertThat(observable.toBlocking())
   .failsWithError(new Throwable("Some error'))

or

assertThat(observable.toBlocking())
   .failsWithErrorMessage("Some error")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions