NativeTest (aotTestClasses) fails on the mock bean. #37480
Labels
for: external-project
For an external project and not something we can fix
status: invalid
An issue that we don't feel is valid
My tests contain the following mock :
@MockkBean
is frompackage 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
The text was updated successfully, but these errors were encountered: