mockito / mockito

Most popular Mocking framework for unit tests written in Java
http://mockito.org
MIT License
14.88k stars 2.56k forks source link

Mockito unit tests are failing after upgrading from Spring Boot 2.7.x to Spring Boot 3.1.x #3047

Open nancyschroepfer opened 1 year ago

nancyschroepfer commented 1 year ago

Mockito that comes with spring-boot-starter-test 3.1.x version are failing the unit tests with the following errors: Caused by: org.mockito.exceptions.base.MockitoInitializationException: Could not initialize inline Byte Buddy mock maker. It appears as if your JDK does not supply a working agent attachment mechanism. Java : 17 JVM vendor name : Oracle Corporation JVM vendor version : 17.0.4.1+1-LTS-2 JVM name : Java HotSpot(TM) 64-Bit Server VM JVM version : 17.0.4.1+1-LTS-2 JVM info : mixed mode, sharing OS name : Windows 10 OS version : 10.0 I have Oracle OpenJDK Java 17 installed and everything was working fine before updating to Spring Boot 3.1

check that

JixiuL commented 1 year ago

Hi, I am a university student and new to contributing. I would love to work on this. If possible could I just get some tips on where to start with this issue? Can you assign this to me?