-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-6281] Add Unit Tests for LivyVersion Class #5029
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
|
|
||
| import org.junit.jupiter.api.Test; | ||
|
|
||
| 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.
Could you update this to avoid the wildcard import and use explicit imports for the Assertions methods being used?
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 pointing that out!! I'll update the code to remove the wildcard and explicitly import only the Assertions methods that are used in the test.
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.
Please make the minor changes I commented on.
…s in LivyVersionTest
Done. Thank you! |
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.
Just a minor thing, everthing else looks good
livy/src/test/java/org/apache/zeppelin/livy/LivyVersionTest.java
Outdated
Show resolved
Hide resolved
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.
LGTM
|
There are several checkstyle errors. |
Thank you for your feedback ! |
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.
👍 LGTM
### What is this PR for? This PR adds a comprehensive suite of unit tests for the LivyVersion class. The LivyVersion class is critical for ensuring Zeppelin's compatibility with various versions of the Livy server. ### What type of PR is it? Test ### Todos * [x] Add LivyVersionTest.java with comprehensive test cases. * [x] Ensure all tests pass with the existing LivyVersion implementation. ### What is the Jira issue? [ZEPPELIN-6281](https://issues.apache.org/jira/browse/ZEPPELIN-6281) ### How should this be tested? ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes #5029 from celinayk/ZEPPELIN-6281. Signed-off-by: ParkGyeongTae <[email protected]>
|
Merged into master and branch-0.12 |
What is this PR for?
This PR adds a comprehensive suite of unit tests for the LivyVersion class. The LivyVersion class is critical for ensuring Zeppelin's compatibility with various versions of the Livy server.
What type of PR is it?
Test
Todos
What is the Jira issue?
ZEPPELIN-6281
How should this be tested?
Screenshots (if appropriate)
Questions: