-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mockito 1.10.16 - NoClassDefFoundError: org/mockito/internal/creation/jmock/ClassImposterizer #13
Comments
I'm facing this too. Using Mockito 1.10.19. |
This is an inelegant solution, but as of 1.10.9, classes that this depended on became package protected. The simplest fix is to move the child classes to the same package. This addresses issue cyrusinnovation#13
Same problem here... using Mockito 1.10.19. Up to Mockito version 1.10.8 mockito-groovy-support 1.3 works fine... |
Solved by switching to Spock Mocks :-) |
The problem is that as of 1.10.9, there was a fair amount of work within Mockito to abstract the internal dependencies on cglib. This involved moving several classes to a different package and making them package protected in scope. |
Using mockito-core-2.1.0-RC.1.jar at Android Studio, also appear this issue |
Getting NoClassDefFound running mockito groovy tests:
java.lang.NoClassDefFoundError: org/mockito/internal/creation/jmock/ClassImposterizer
at com.cyrusinnovation.mockitogroovysupport.GroovyCglibMockMaker.createMock(GroovyCglibMockMaker.java:20)
at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:33)
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:59)
at org.mockito.Mockito.mock(Mockito.java:1285)
at org.mockito.Mockito.mock(Mockito.java:1163)
The text was updated successfully, but these errors were encountered: