Commit 2b24c6f
Update Mockito to 5.23.0 for Java 25 support
Mockito 5.17.0 bundled ByteBuddy 1.15.11 which does not support Java 25
class files, causing SchedulerShutdownRaceTest and ZeroTimeoutContractTest
to fail with 'Mockito cannot mock this class'.
- Upgrade mockito-core from 5.17.0 to 5.23.0 (includes ByteBuddy 1.17.5+)
- Add JDK 21+ profile that passes -XX:+EnableDynamicAgentLoading to
Surefire, allowing Mockito/ByteBuddy to attach at runtime (JEP 451)
- Use a default-empty surefire.jvm.args property so JDK 17-20 are
unaffected by the flag
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent af232de commit 2b24c6f
1 file changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | | - | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | | - | |
249 | | - | |
| 250 | + | |
| 251 | + | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
| |||
543 | 545 | | |
544 | 546 | | |
545 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
546 | 560 | | |
547 | 561 | | |
548 | 562 | | |
| |||
0 commit comments