Open GoogleCodeExporter opened 8 years ago
Hi think you should see with the Android guys. I'm not sure how the Android
Development Kit works or the APIs, but CGLIB is using the stand JDK, so they
may have removed the java.beans.* api. Maybe the dexmaker guys can help.
Original comment by brice.du...@gmail.com
on 4 Dec 2013 at 2:34
I get same sort of error but with PowerMock. Here's the log output.
It crashes on this line: PackageManager spyPackMan =
spy(activity.getPackageManager());
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(DefaultGeneratorStrateg
y.java:25)
at
org.mockito.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java
:217)
at org.mockito.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at org.mockito.cglib.core.KeyFactory.create(KeyFactory.java:117)
at org.mockito.cglib.core.KeyFactory.create(KeyFactory.java:109)
at org.mockito.cglib.core.KeyFactory.create(KeyFactory.java:105)
at org.mockito.cglib.proxy.Enhancer.<clinit>(Enhancer.java:70)
at
org.mockito.internal.creation.jmock.ClassImposterizer.createProxyClass(ClassImpo
sterizer.java:85)
at
org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposteri
zer.java:62)
at
org.powermock.api.mockito.internal.mockcreation.MockCreator.createMethodInvocati
onControl(MockCreator.java:111)
at
org.powermock.api.mockito.internal.mockcreation.MockCreator.mock(MockCreator.jav
a:60)
at org.powermock.api.mockito.PowerMockito.spy(PowerMockito.java:220)
at com.myapp.test.mock.MockFactory.stubPackageManager(MockFactory.java:33)
at com.myapp.test.mock.MockFactory.createStubs(MockFactory.java:21)
at com.myapp.test.MyActivityUnitTest.setUp(MyActivityUnitTest.java:38)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
at
android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:55
4)
at
android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1738)
Not sure what happens but tried a lot of thing which haven't changed anything...
Original comment by vbo...@gmail.com
on 23 Dec 2013 at 4:32
Hi, Powermock is yet another project, and I don't think Johan made Powermock
compatible with Dalvik. I don't know if he will.
Original comment by brice.du...@gmail.com
on 24 Dec 2013 at 11:59
Original issue reported on code.google.com by
mikel...@gmail.com
on 3 Dec 2013 at 1:28