Код: Выделить всё
class MyTest {
val m = mockk()
@Test
fun test(){}
}
Код: Выделить всё
java.lang.ExceptionInInitializerError
Caused by: java.lang.IllegalStateException: Error during attachment using: net.bytebuddy.agent.ByteBuddyAgent$AttachmentProvider$Compound@308a6984
Caused by: java.lang.reflect.InvocationTargetException
Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
Я использую Java 8, Kotlin 1.9.22, Spring Boot 2.7.10 и com.ninja-squad.springmockk 3.1.2 (также пробовал io. mockk.mockk последняя версия и версия 1.9.3 - та же проблема) ((Может показаться переутомлением, но причина была найдена спустя много времени))
Подробнее здесь: https://stackoverflow.com/questions/789 ... nynametest