-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-12431. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-hdfs Part12. #7873
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
Conversation
|
💔 -1 overall
This message was automatically generated. |
7936a4d to
daca230
Compare
|
🎊 +1 overall
This message was automatically generated. |
| set.set(index); | ||
| } | ||
| Assert.assertFalse(set.get(groupSize - 1)); | ||
| Assertions.assertFalse(set.get(groupSize - 1)); |
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.
The best practice is to import it during the import.
| BlockPlacementStatus status = bm.getStriptedBlockPlacementPolicy() | ||
| .verifyBlockPlacement(block.getLocations(), 5); | ||
| Assert.assertTrue(status.isPlacementPolicySatisfied()); | ||
| Assertions.assertTrue(status.isPlacementPolicySatisfied()); |
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.
It needs to be imported during the import, just like the above.
| Assert.assertEquals(1, m.getId("1")); | ||
| Assert.assertEquals(2, m.getId("2")); | ||
| Assert.assertEquals(3, m.getId("3")); | ||
| Assertions.assertEquals(1, m.getId("1")); |
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.
just like the above.
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.
Thanks for the feedback—I’ll make the updates right away!
|
@zhtttylz Thanks for the contribution! Overall, it looks fine, but let’s fix the checkstyle issues. |
|
🎊 +1 overall
This message was automatically generated. |
|
@zhtttylz Thanks for the contribution! Merged into trunk. |
|
@slfan1989 Thanks for merging! I’ll submit the remaining changes shortly. |
Description of PR
JIRA:HDFS-12431. Upgrade JUnit from 4 to 5 in hadoop-hdfs Part12.
How was this patch tested?
Junit Test.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?