Я использую «MockedStatic» в своих тестах, но при выполнении метода появляется эта ошибка.
org.mockito.exceptions.base.MockitoException:
The used MockMaker SubclassByteBuddyMockMaker does not support the creation of static mocks
Mockito's inline mock maker supports static mocks based on the Instrumentation API.
You can simply enable this mock mode, by placing the 'mockito-inline' artifact where you are currently using 'mockito-core'.
Note that Mockito's inline mock maker is not supported on Android.
Я вставил зависимость «mockito-inline», но похоже, что Maven не может ее разрешить. Текст этой ошибки есть в статье.
Я использую Java 11, Junit 5.
pom.xml:
...
org.mockito
mockito-inline
3.8.0
test
...
Подробнее здесь: https://stackoverflow.com/questions/707 ... -not-found