-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29637 Implement ResourceCheckerJUnitListener for junit 5 #7366
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
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.
Pull Request Overview
This PR refactors the JUnit resource checking functionality to support both JUnit 4 and JUnit 5, as part of HBASE-29637. The changes extract resource analyzer classes to a shared utility and implement resource checking in the existing JUnit 5 extension.
- Extracted resource analyzer classes from ResourceCheckerJUnitListener into a new JUnitResourceCheckers utility class
- Simplified ResourceCheckerJUnitListener to use the shared utility for resource analyzer setup
- Added resource checking functionality to HBaseJupiterExtension for JUnit 5 tests
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ResourceCheckerJUnitListener.java | Refactored to use extracted utility class instead of embedded analyzers |
| JUnitResourceCheckers.java | New utility class containing all resource analyzer implementations |
| HBaseJupiterExtension.java | Enhanced with resource checking capabilities for test methods |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseJupiterExtension.java
Outdated
Show resolved
Hide resolved
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
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.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
hbase-common/src/test/java/org/apache/hadoop/hbase/JUnitResourceCheckers.java
Outdated
Show resolved
Hide resolved
hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseJupiterExtension.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
stoty
left a comment
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 LGTM
Co-authored-by: Copilot <[email protected]> Signed-off-by: Istvan Toth <[email protected]> (cherry picked from commit d8b1912)
Co-authored-by: Copilot <[email protected]> Signed-off-by: Istvan Toth <[email protected]> (cherry picked from commit d8b1912)
Co-authored-by: Copilot <[email protected]> Signed-off-by: Istvan Toth <[email protected]> (cherry picked from commit d8b1912)
Co-authored-by: Copilot <[email protected]> Signed-off-by: Istvan Toth <[email protected]> (cherry picked from commit d8b1912)
No description provided.