Mockito + Dexmaker on Android
问题 I am trying to use Mockito in my Android project. I have found very nice tutorial that deals with it: http://www.paulbutcher.com/2012/05/mockito-on-android-step-by-step/ Basically it uses new version of Mockito + Dexmaker and everything works as expected. However, when I try to mock some Android specific object i.e: Context context = mock(Context.class); I receive this exception: java.lang.IllegalArgumentException: dexcache == null (and no default could be found; consider setting the