Skip to content

Conversation

@liuxiaocs7
Copy link
Contributor

@BeforeEach
public void setup() throws IOException {
when(admin.getClusterMetrics()).thenReturn(TestUtils.createDummyClusterMetrics());
lenient().when(admin.getClusterMetrics()).thenReturn(TestUtils.createDummyClusterMetrics());
Copy link
Contributor Author

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>
Copy link
Contributor Author

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

Copy link
Contributor

@PDavid PDavid left a 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. 👍

@PDavid
Copy link
Contributor

PDavid commented Feb 11, 2026

Can you please raise a backport PR to branch-2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants