just wanted to clarify my understanding of the error I get is correct please...
java.lang.ExceptionInInitializerError
at org.mockito.internal.creation.jmock.ClassImposterizer.createProxyClass(ClassImposterizer.java:85)
at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:62)
at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:56)
at org.mockito.internal.creation.CglibMockMaker.createMock(CglibMockMaker.java:23)
at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:26)
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:51)
at org.mockito.Mockito.mock(Mockito.java:1243)
at org.mockito.Mockito.mock(Mockito.java:1120)
at uk.co.flurrished.test.ResultActivityTest.setUp(ResultActivityTest.java:51)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)
Caused by: java.lang.VerifyError: org.mockito.cglib.core.ReflectUtils
at org.mockito.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:167)
at org.mockito.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
As you can see, this is littered with cglib references, and not a mention of dexedlibs. Is it safe to assume that the dexing isn't happening and Mockito is trying to use CGLib to construct the Reflection bootstrapping. If so, given I have mockito-1.9.5-all and both the dexmaker and dexmaker-mockito in my libs, does anyone know how I can force it to use these dex libs. Stackoverflow and Googlecode is littered with this issue, but nothing works for me yet. TDD on Android seems all but impossible at the moment.
Many thanks
Mike