Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
29 lines
2.3 KiB
Plaintext
29 lines
2.3 KiB
Plaintext
# 06-mockito: mvn test on JDK 25, release 25, JUnit 6.1.3, mocking a concrete class
|
|
FAIL Mockito 5.14.2
|
|
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.096 s <<< FAILURE! -- in demo.GreeterTest
|
|
[ERROR] demo.GreeterTest.stubsAConcreteClass -- Time elapsed: 1.994 s <<< ERROR!
|
|
Caused by: java.lang.IllegalArgumentException: Java 25 (69) is not supported by the current version of Byte Buddy which officially supports Java 24 (68) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
|
|
FAIL Mockito 5.15.2
|
|
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.052 s <<< FAILURE! -- in demo.GreeterTest
|
|
[ERROR] demo.GreeterTest.stubsAConcreteClass -- Time elapsed: 1.916 s <<< ERROR!
|
|
Caused by: java.lang.IllegalArgumentException: Java 25 (69) is not supported by the current version of Byte Buddy which officially supports Java 24 (68) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
|
|
FAIL Mockito 5.17.0
|
|
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.314 s <<< FAILURE! -- in demo.GreeterTest
|
|
[ERROR] demo.GreeterTest.stubsAConcreteClass -- Time elapsed: 2.207 s <<< ERROR!
|
|
Caused by: java.lang.IllegalArgumentException: Java 25 (69) is not supported by the current version of Byte Buddy which officially supports Java 24 (68) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
|
|
OK Mockito 5.18.0
|
|
OK Mockito 5.25.0
|
|
|
|
--- Mockito 5.14.2 with -Dnet.bytebuddy.experimental=true (stop-gap, not a fix)
|
|
OK Mockito 5.14.2 + experimental
|
|
|
|
--- Mockito 5.25.0, default: notices printed during the test run
|
|
Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build as described in Mockito's docu
|
|
WARNING: A Java agent has been loaded dynamically (~/.m2/repository/net/bytebuddy/byte-buddy-agent/1.18.17/byte-buddy-agent-1.18.17.jar)
|
|
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
|
|
PROBE ok: mock says hi
|
|
|
|
--- Mockito 5.25.0 with -Pmockito-agent (agent registered at startup)
|
|
PROBE ok: mock says hi
|
|
[INFO] BUILD SUCCESS
|