-
Couldn't load subscription status.
- Fork 9.1k
HDFS-12431. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-hdfs Part5. #7733
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. |
| assertEquals("The length of file should be the same to write size", fileLength, readLen); | ||
| Assert.assertArrayEquals(expected, result); | ||
| assertEquals(fileLength, readLen, "The length of file should be the same to write size"); | ||
| Assertions.assertArrayEquals(expected, result); |
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.
We should avoid importing via Assertions.*
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 update the code as soon as possible.
| Integer.MAX_VALUE); | ||
| Assert.assertEquals("Blocks " + b + " has not been abandoned.", | ||
| orginalNumBlocks, blocks.locatedBlockCount() + 1); | ||
| Assertions.assertEquals(orginalNumBlocks, blocks.locatedBlockCount() + 1, "Blocks " + |
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.
We should avoid importing via Assertions.*
4c7fdc7 to
4495f11
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
78a06c2 to
fc58c36
Compare
|
💔 -1 overall
This message was automatically generated. |
fc58c36 to
fbf3c25
Compare
|
🎊 +1 overall
This message was automatically generated. |
| .assertTrue("File storage policy should be HOT", | ||
| status.getStoragePolicy() == HOT); | ||
| assertTrue( | ||
| status.getStoragePolicy() == HOT, "File storage policy should be HOT"); |
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.
checkstyle.
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 update the code soon.
| .assertTrue("File storage policy should be HOT", | ||
| status.getStoragePolicy() == HOT); | ||
| assertTrue( | ||
| status.getStoragePolicy() == HOT, "File storage policy should be HOT"); |
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.
checkstyle.
|
🎊 +1 overall
This message was automatically generated. |
|
Thanks @slfan1989 for reviewing and merging! |
…pache#7733) * HDFS-12431. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-hdfs Part5. Co-authored-by: Shilun Fan <[email protected]> Reviewed-by: Shilun Fan <[email protected]> Signed-off-by: Shilun Fan <[email protected]>
Description of PR
JIRA:HDFS-12431. Upgrade JUnit from 4 to 5 in hadoop-hdfs Part5.
How was this patch tested?
Junit Test.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?