-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29887 Upgrade hbase-hbtop to use junit5 #7734
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: master
Are you sure you want to change the base?
Conversation
liuxiaocs7
commented
Feb 11, 2026
- see: HBASE-29887
| @BeforeEach | ||
| public void setup() throws IOException { | ||
| when(admin.getClusterMetrics()).thenReturn(TestUtils.createDummyClusterMetrics()); | ||
| lenient().when(admin.getClusterMetrics()).thenReturn(TestUtils.createDummyClusterMetrics()); |
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.
JUnit 5 performs stricter checks here.
| <dependency> | ||
| <groupId>org.mockito</groupId> | ||
| <artifactId>mockito-core</artifactId> | ||
| <artifactId>mockito-junit-jupiter</artifactId> |
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 need to change this mockito dependency during the migration. cc @Apache9
PDavid
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.
Thanks, looks good to me. 👍
|
Can you please raise a backport PR to |