-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-12431. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-hdfs Part16. #7922
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. |
🎊 +1 overall
This message was automatically generated. |
@@ -137,8 +137,8 @@ public void testChooseLocalNode() { | |||
.chooseTarget(FILE, 1, localNode, | |||
new ArrayList<DatanodeStorageInfo>(), false, null, BLOCK_SIZE, | |||
TestBlockStoragePolicy.DEFAULT_STORAGE_POLICY, null); | |||
Assert.assertEquals(1, targets.length); | |||
Assert.assertEquals(localNode, targets[0].getDatanodeDescriptor()); | |||
Assertions.assertEquals(1, targets.length); |
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’s better for us to use static imports.
@@ -56,9 +56,9 @@ public void testIsDeleted() { | |||
BlockInfo blockInfo = new BlockInfoContiguous((short) 3); | |||
BlockCollection bc = Mockito.mock(BlockCollection.class); | |||
blockInfo.setBlockCollectionId(1000); | |||
Assert.assertFalse(blockInfo.isDeleted()); | |||
Assertions.assertFalse(blockInfo.isDeleted()); |
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’s better for us to use static imports.
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!
🎊 +1 overall
This message was automatically generated. |
@zhtttylz Thanks for the contribution! Merged into trunk. |
Thanks @slfan1989 for reviewing and merging! |
Description of PR
JIRA:HDFS-12431. Upgrade JUnit from 4 to 5 in hadoop-hdfs Part16.
How was this patch tested?
Junit Test.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?