My tests contain the following mock :
@MockkBean
lateinit var myService: MyService
@MockkBean is from package import com.ninjasquad.springmockk.MockkBean
When i run ./gradlew aotTestClasesses I am getting error:
Caused by: java.lang.IllegalArgumentException: Failed to generate code for '[MockkDefinition@72f855b9 name = [null], typeToMock = com.myApp.MyService, extraInterfaces = set[[empty]], clear = AFTER]' with type ?
It may be problem with mockkbean dependency but I am wondering if there is any workaround for this from spring/graalvm side?
Thanks
Spring boot 3.1.3
My tests contain the following mock :
@MockkBeanis frompackage import com.ninjasquad.springmockk.MockkBeanWhen i run
./gradlew aotTestClasessesI am getting error:Caused by: java.lang.IllegalArgumentException: Failed to generate code for '[MockkDefinition@72f855b9 name = [null], typeToMock = com.myApp.MyService, extraInterfaces = set[[empty]], clear = AFTER]' with type ?It may be problem with mockkbean dependency but I am wondering if there is any workaround for this from spring/graalvm side?
Thanks
Spring boot 3.1.3