Vladislav Pyatkov created IGNITE-23956:
------------------------------------------

             Summary: Clear inline mocks after each test
                 Key: IGNITE-23956
                 URL: https://issues.apache.org/jira/browse/IGNITE-23956
             Project: Ignite
          Issue Type: Improvement
            Reporter: Vladislav Pyatkov


h3.Motivation
Inline mocks can lead to memory leaks:
https://github.com/mockito/mockito/pull/1619
To clear all impline mocks, this call is enough:
{code}
Mockito.framework().clearInlineMocks();
{code}
but we cannot do this because many test classes are used {{MockitoExtension}}. 
The extension does not get on with the manual clearing inline mocks (it uses 
the mocks after each test method in the extension body).

h3.Definition of done
Add the manual clearing to the base test class to not forget to do it in each 
test.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to