Abhängigkeit 'org.mockito: Mockito-inline: 3.8.0' nicht gefundenJava

Java-Forum
Anonymous
 Abhängigkeit 'org.mockito: Mockito-inline: 3.8.0' nicht gefunden

Post by Anonymous »

Ich verwende in meinen Tests ein "verspottetes", aber durch die Ausführung der Methode wird dieser Fehler angezeigt. < /p>

Code: Select all

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.
< /code>
Ich habe die Abhängigkeit "Mockito-Inline" eingefügt, aber es sieht so aus, als ob Maven sie nicht beheben kann. Der Text dieses Fehlers befindet sich im Artikel. 
Ich verwende Java 11, Junit 5.
...
org.mockito
mockito-inline
3.8.0
test
...

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post