Upgrade Byte Buddy along with Mockito 4
MSALUpgrade Byte Buddy to 1.12.19 where Mockito 4.10.0 or a later 4.x, which depends on that version, gets an older Byte Buddy transitively, such as one whose version a BOM like that of Spring Boot 2 manages. Such a Mockito fails to load its mock maker, for example with a ClassNotFoundException for net.bytebuddy.utility.GraalImageCode.
org. openrewrite. java. testing. mockito. UpgradeByteBuddyForMockito4mod run . --recipe= org. openrewrite. java. testing. mockito. UpgradeByteBuddyForMockito4Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.