Skip to content

Fail with message #1

Open
Open

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

  1. ivacf commented on Sep 2, 2015

    @ivacf
    Contributor

    Yes, I think this would defenitely be useful. I'll take it into account fo next release. Thanks.

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