-
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
base: trunk
Are you sure you want to change the base?
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. |
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?