-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
YARN-11261. Upgrade JUnit from 4 to 5 in hadoop-yarn-server-web-proxy #4777
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
@aajisaka - Please help in reviewing the PR. Thanks. |
@aajisaka - As discussed, added |
🎊 +1 overall
This message was automatically generated. |
@aajisaka - Please help in reviewing the PR. Thanks. |
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 great to see you refactored several assertions. Added 2 comments to refactor more
@@ -88,11 +89,11 @@ public static void setUp() { | |||
testMiniKDC = new MiniKdc(MiniKdc.createConf(), TEST_ROOT_DIR); | |||
setupKDC(); | |||
} catch (Exception e) { | |||
assertTrue("Couldn't create MiniKDC", false); | |||
assertTrue(false, "Couldn't create MiniKDC"); |
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.
Here, we should use fail("Couldn't create MiniKDC");
https://junit.org/junit5/docs/5.8.2/api/org.junit.jupiter.api/org/junit/jupiter/api/Assertions.html#fail(java.lang.String)
try { | ||
testHelper(false); | ||
} catch (ApplicationNotFoundException e) { | ||
Assert.assertTrue(e.getMessage() == appNotFoundExceptionMsg); | ||
assertTrue(e.getMessage() == appNotFoundExceptionMsg); |
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 can refactor as assertEquals(appNotFoundExceptionMsg, e.getMessage())
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@aajisaka - I have addressed you comments. Please help in review. Thanks. |
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, thank you for your update.
…apache#4777) Co-authored-by: Ashutosh Gupta <ashugpt@amazon.com> Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
Description of PR
Upgrade JUnit from 4 to 5 in hadoop-yarn-server-web-proxy
JIRA - YARN-11261
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?