-
Couldn't load subscription status.
- Fork 9.1k
HDFS-12431. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-hdfs Part15. #7908
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. |
| bs.run(new String[]{"-force"}); | ||
| } catch (RuntimeException e) { | ||
| throw e.getCause(); | ||
| // 和原来一样,把包装的 cause 抛出来以匹配期望异常类型 |
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.
Can you please remove these comments or translate them to English?
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. |
|
🎊 +1 overall
This message was automatically generated. |
| import org.junit.rules.TestName; | ||
| import org.junit.jupiter.api.AfterEach; | ||
| import org.junit.jupiter.api.Assertions; | ||
| 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 *
| jn.getJournalSyncerStatus(journalId)); | ||
| Assert.assertEquals(false, | ||
| jn.getJournal(journalId).getTriedJournalSyncerStartedwithnsId()); | ||
| Assertions.assertEquals(false, jn.getJournalSyncerStatus(journalId)); |
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 way is to introduce it via the static method.
| Assert.assertEquals(xattrs.size(), 2); | ||
| Assert.assertArrayEquals(value1, xattrs.get(name1)); | ||
| Assert.assertArrayEquals(value2, xattrs.get(name2)); | ||
| Assertions.assertEquals(xattrs.size(), 2); |
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 way is to introduce it via the static method.
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 the updates out shortly.
|
🎊 +1 overall
This message was automatically generated. |
|
@zhtttylz Thanks for the contribution! LGTM. |
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.
+1. I'll commit this soon.
|
I committed this to trunk. @zhtttylz , thank you for the contribution. @slfan1989 , thank you for reviewing. |
@cnauroth Thank you very much for helping with the review! |
|
Thanks @cnauroth and @slfan1989 for reviewing and merging! |
Description of PR
JIRA:HDFS-12431. Upgrade JUnit from 4 to 5 in hadoop-hdfs Part15.
How was this patch tested?
Junit Test.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?