You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have integrated evosuite with gradle project and able to create all test cases. I am able to run individual test-class but while running all test-cases I am getting "MockitoException", exception is as below :
**org.evosuite.shaded.org.mockito.exceptions.base.MockitoException:
ClassCastException occurred while creating the mockito proxy :
class to mock : 'zat.co.group.bas.service.AuthServiceDB', loaded by classloader : 'org.evosuite.runtime.instrumentation.EvoClassLoader@2890c451'
created class : 'zat.co.group.bas.service.AuthServiceDB$$EnhancerByMockitoWithCGLIB$$3cfe3d6', loaded by classloader : 'org.evosuite.shaded.org.mockito.internal.creation.util.SearchingClassLoader@69d6a7cd'
proxy instance class : 'zat.co.group.bas.service.AuthServiceDB$$EnhancerByMockitoWithCGLIB$$3cfe3d6', loaded by classloader : 'org.evosuite.shaded.org.mockito.internal.creation.util.SearchingClassLoader@ec2bf82'
instance creation by : ObjenesisInstantiator
You might experience classloading issues, disabling the Objenesis cache might help (see MockitoConfiguration)**
Kindly see this issue, and suggest me anything needs to change or configure.
The text was updated successfully, but these errors were encountered:
I have integrated evosuite with gradle project and able to create all test cases. I am able to run individual test-class but while running all test-cases I am getting "MockitoException", exception is as below :
**org.evosuite.shaded.org.mockito.exceptions.base.MockitoException:
ClassCastException occurred while creating the mockito proxy :
class to mock : 'zat.co.group.bas.service.AuthServiceDB', loaded by classloader : 'org.evosuite.runtime.instrumentation.EvoClassLoader@2890c451'
created class : 'zat.co.group.bas.service.AuthServiceDB$$EnhancerByMockitoWithCGLIB$$3cfe3d6', loaded by classloader : 'org.evosuite.shaded.org.mockito.internal.creation.util.SearchingClassLoader@69d6a7cd'
proxy instance class : 'zat.co.group.bas.service.AuthServiceDB$$EnhancerByMockitoWithCGLIB$$3cfe3d6', loaded by classloader : 'org.evosuite.shaded.org.mockito.internal.creation.util.SearchingClassLoader@ec2bf82'
instance creation by : ObjenesisInstantiator
You might experience classloading issues, disabling the Objenesis cache might help (see MockitoConfiguration)**
Kindly see this issue, and suggest me anything needs to change or configure.
The text was updated successfully, but these errors were encountered: