-
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 Part13. #7890
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
@@ -445,8 +445,8 @@ public static void assertFileContentsDifferent( | |||
public static Map<File, String> getFileMD5s(File... files) throws Exception { | |||
Map<File, String> ret = Maps.newHashMap(); | |||
for (File f : files) { | |||
assertTrue("Must exist: " + f, f.exists()); | |||
ret.put(f, getFileMD5(f)); | |||
assertTrue(f.exists(), "Must exist: " + f); |
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.
Hi, it looks like there might be an extra indent here.
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.
Thank you very much for the review—I’ll update the code as soon as possible.
@@ -22,7 +22,7 @@ | |||
import static org.apache.hadoop.fs.permission.AclEntryScope.*; | |||
import static org.apache.hadoop.fs.permission.AclEntryType.*; | |||
import static org.apache.hadoop.fs.permission.FsAction.*; | |||
import static org.junit.Assert.*; | |||
import static org.junit.jupiter.api.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.
avoid *
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 review! I’ll push the updates shortly.
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@@ -53,12 +51,12 @@ | |||
import java.util.Set; | |||
import java.util.concurrent.atomic.AtomicInteger; | |||
|
|||
import static org.junit.Assert.assertThat; | |||
|
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 line can be removed.
@BeforeClass | ||
public static void init() throws Exception { | ||
@BeforeAll | ||
public static void init() throws Exception { |
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 issue.
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.
Thank you for the review. I’ll roll out the updates soon.
@zhtttylz Thanks for the contribution! The PR looks good overall, but we need to fix the checkstyle issues. |
a59bfe5
to
8395289
Compare
🎊 +1 overall
This message was automatically generated. |
🎊 +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 Part13.
How was this patch tested?
Junit Test.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?