poohbar
03/08/2019, 7:58 PMCaused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class com.example.core.feature.general.MyService$ByteBuddy$XNiBjGz8$ByteBuddy$rk2gOXmp: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.NoClassDefFoundError-->com/example/core/feature/general/MyService$ByteBuddy$XNiBjGz8$ByteBuddy$rk2gOXmp
I found this:
https://github.com/raphw/byte-buddy/issues/486
Could it be somehow related to ByteBuddy? I know that Spring Boot now supports Java 11 for the first time.
This is how I define my test mocks.. used to work perfectly:
@Bean
fun myService() = mockk<MyService>(relaxed = true)
poohbar
03/08/2019, 8:14 PMjbnizet
03/08/2019, 11:16 PM