Skip to content

FEATURE #1652 : assert return value of callable throwing exception - #2009

Closed
hosuaby wants to merge 1 commit into
assertj:mainfrom
hosuaby:feature/codeReturnAssert
Closed

hosuaby wants to merge 1 commit into
assertj:mainfrom
hosuaby:feature/codeReturnAssert

Conversation

@hosuaby

@hosuaby hosuaby commented Oct 2, 2020

Copy link
Copy Markdown

Check List:

The goal of that feature is to allow the tests of code that returns a value using method Assertions.assertThatReturningCode. For example:

assertThatReturningCode(() -> 42)
    .doesNotThrowAnyExceptionAndReturns()
    .isEqualTo(42);

@scordio

scordio commented May 6, 2022

Copy link
Copy Markdown
Member

Thanks for raising the PR, @hosuaby, and sorry for not providing any feedback for a long time!

We decided to take a different direction, currently under investigation with #2519. For this reason, I'll close this PR.

@scordio scordio closed this May 6, 2022
@scordio scordio added the status: superseded An issue that has been superseded by another label Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: superseded An issue that has been superseded by another

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assert return value of callable throwing exception

2 participants