Skip to content

Improve 'Expecting code to raise a throwable' when lambda returns a value #3043

Description

@findepi

assertThatThrownBy throws "Expecting code to raise a throwable" when called code doesn't throw.
When test assertion fails, it's tempting to know what did the code do instead.

Enhance "Expecting code to raise a throwable" to mention produced value in case when the lambda is a producer.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions