I have a Java library that uses a few things from the Android APIs. I\'d like to use Mockito to write unit tests for this library.
Is there a way I can go about this? <
As of version 1.9.5 (released 3rd of June, 2012) you can use Mockito with Android. To do this you will also require dexmaker:
http://code.google.com/p/dexmaker/
This wiki page describes how to implement it:
http://code.google.com/p/dexmaker/wiki/Mockito