I'm getting the following error when running tests;
java.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
...
Could not initialize inline Byte Buddy mock maker.
It appears as if your JDK does not supply a working agent attachment mechanism.
Java : 15
JVM vendor name : Oracle Corporation
JVM vendor version : 15.0.1+9-18
JVM name : OpenJDK 64-Bit Server VM
JVM version : 15.0.1+9-18
JVM info : mixed mode, sharing
OS name : Linux
OS version : 5.9.10-200.fc33.x86_64
I'm using that current latest version of Mockito;
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.6.28</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>3.6.28</version>
</dependency>
Does anyone have any ideas of what is failing here & how to resolve it?
Many thanks.