[
https://issues.apache.org/jira/browse/IGNITE-28237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18066290#comment-18066290
]
Kirill Anisimov edited comment on IGNITE-28237 at 3/17/26 11:10 AM:
--------------------------------------------------------------------
The fix removes reliance on unsupported internal Mockito implementation
classes. It also preserves test semantics and keeps them compatible with the
Java version used.
was (Author: JIRAUSER310920):
Fix removes reliance on unsupported internal Mockito implementation classes. It
also preserves test semantics and keeps them compatible with the Java version
used.
> Finalize Mockito 5 migration and fix incompatible tests
> -------------------------------------------------------
>
> Key: IGNITE-28237
> URL: https://issues.apache.org/jira/browse/IGNITE-28237
> Project: Ignite
> Issue Type: Sub-task
> Reporter: Kirill Anisimov
> Assignee: Kirill Anisimov
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {{mockito.version}} is already set to {{5.21.0}} in the parent POM.
> The task is to finalize Mockito 5 migration by fixing incompatible test code
> and validating test execution.
> h3. Problem:
> Several tests still used internal Mockito APIs from org.mockito.internal.*.
> This is unsafe because internal Mockito classes are implementation details
> and are not covered by compatibility guarantees across major versions.
> Keeping such usages after migration to Mockito 5 could lead to brittle tests
> and future breakages even if the current dependency version resolves
> successfully.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)