-
Notifications
You must be signed in to change notification settings - Fork 39
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
Rewrite JUnit Assertions.assertThrows()
to AssertJ assertThatThrownBy
#402
Comments
Good idea! I would like to suggest that we expand the scope of this issue a bit to cover "some sizable subset" of the |
Interested in picking this up! Below are the methods in Conditions: Equality: Exceptions: Other: Each method also has overloads with a Left a question mark for a few I'm not sure about, but I'm guessing those are used much less frequently. |
Thanks for the overview @giall! To go over your points:
Thanks for having a crack at this, and if you have further questions: don't hesitate to ask! 🚀 |
Nice @giall! Indeed it makes sense to bundle these rules. Maybe we can also include the
Not sure if we should tackle W.r.t.
Sounds to me like it'd be better to split that in two PRs then 😉. |
@rickie Looking at |
Resolved in #417 |
Problem
We prefer to use AssertJ for our assertions. So we could use a Refaster rule that automatically prefers this over the assertions library built into JUnit!
Description of the proposed new feature
I would like to rewrite the following code:
to:
The text was updated successfully, but these errors were encountered: