Hello All,
I wanted to let everyone know about some excellent work that has been taking place over the last couple of years to support native mocking through industry-established mocking frameworks that hopefully most users of Android Mock already know and love. For various reasons, getting the code out and integrated has been something of a slow process, but it now appears that the latest (1.9.5 rc1 and later) version of
Mockito (downloads) has support for native mocking of Android code, while
EasyMock (link to feature request) support is pending.
When Android Mock was created 3 years ago, it was a 4 week project to fill a hole in the Android developer's toolbox until such time that support for dynamic definition and reloading of classes was supported by Dalvik. It's great to see that so many people have found it useful but it was always meant as a quick stop-gap solution until a more natural solution could be developed.
For anyone interested in giving it a try, I suggest following the Mockito link above. Since Android Mock is written on top of EasyMock, and has the same syntax and grammar, translating existing test code from Android Mock to Mockito should be about the same process as going from EasyMock. This page about
EasyMock and Mockito should prove a good starting point. Transitioning from Android Mock to EasyMock is obviously easier, but the EasyMock changes haven't been integrated into the project as of yet. More details can be seen on the feature request link above.
Thank you everyone for your interest in Android Mock these 3 years, and I hope that it's been of assistance to your development efforts.
Steve