Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add recipes to migrate from TestNG to AssertJ #520
Add recipes to migrate from TestNG to AssertJ #520
Changes from 2 commits
9d67df6
cf77667
3c1c4ab
4773a05
37bb2e0
70f6c38
20f2666
dad224e
c8a6aa1
52cbc2e
612c558
cf8957d
e53927a
d7e6c0e
1b029d2
7f8baff
7bf1516
0afa513
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it rewrite to
hasSameElementsAs
forSet
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like when
args.get(2)
is0
thenisFloatingPointType
does not properly resolve typeassertEquals(Float.MAX_VALUE, config.getFloatOption(), 0);
->
assertThat(Float.MAX_VALUE).as(0).isEqualTo(config.getFloatOption());
https://github.com/airlift/airlift/pull/1194/files#diff-f4ec6d967f355397849228565bddf5982dbcfc629ec05b6cf8f4e5cfb68ba700R190
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for
assertEquals(digest.valueAt(0), value, 0.001f);
it generates
assertThat(digest.valueAt(0)).isCloseTo(value, within(0.001f));
which does not compile, because previously float was implicitly converted to double
It has to be
assertThat(digest.valueAt(0)).isCloseTo(value, within(0.001));
airlift/airlift@
7f935b3
(#1194)