-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ExpectedException
from internal test suite
#2510
Comments
#2511 contains an example replacement. The expectation is that we do the same for all the other test suites we have lying around. |
Should we include the existing |
@temp-droid I don't think we need a dedication cleanup for that, but if you are changing a test that has runnables, then yes let's convert them to lambdas instead. Do you want to take on this task? Thanks in advance! |
@TimvdLippe Do you want to remove EDIT: just realized in the same file I'm looking into ( |
Yes to both of these, thanks! |
The rule is not ideal, as it will trigger even if the test fails for a completely different reason. Instead, we should use
assertj
withassertThatThrownBy
to denote which specific line should trigger the exception.The text was updated successfully, but these errors were encountered: