We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.hasSize(list2.size())
.hasSameSizeAs(list2)
I have many instances of AssertJ assertThat(list).hasSize(list2.size()) in my code.
assertThat(list).hasSize(list2.size())
The AssertJ best practices recipe should convert them to assertThat(list).hasSameSizeAs(list2).
assertThat(list).hasSameSizeAs(list2)
no
The text was updated successfully, but these errors were encountered:
Seems reasonable indeed; would be a nice addition to the recipe catalog.
Sorry, something went wrong.
No branches or pull requests
What problem are you trying to solve?
I have many instances of AssertJ
assertThat(list).hasSize(list2.size())
in my code.Describe the solution you'd like
The AssertJ best practices recipe should convert them to
assertThat(list).hasSameSizeAs(list2)
.Have you considered any alternatives or workarounds?
Additional context
Are you interested in contributing this feature to OpenRewrite?
no
The text was updated successfully, but these errors were encountered: