Mockito has become an essential part of my testing toolbox. Yet every single time I start a new Android project I have to hunt down the solution to the ‘dexcache == null’ error.
I haven’t founded a better solution that simply setting the System property as specified in the bug report. Thus, I have a simple class I add to every project’s test suite as a work around. It sets the dexmaker cache and tests the Mockito is property configured.