79144795

Date: 2024-10-31 12:51:07
Score: 2.5
Natty:
Report link

The problem comes from Intelij. In cmd the test is working fine. In order to overcome this issue, do the followings steps:

In test resources create the directory mockito-extensions and in that directory the file org.mockito.plugins.MockMaker. The complete path should look like this: src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker.

In the file, add the following line mock-maker-inline

enter image description here

Note: both dependencies are needed enter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mariusT24