The documentation of the Mockito and Dexmaker projects does not seem to clearly state the relationship between the two, they only make mention of each other. If Dexmaker is required, which versions of Mockito and Dexmaker are compatible?, and is only the dexmaker-mockito artifact required?
Asked
Active
Viewed 580 times
2 Answers
1
You need the latest version of mockito (at the moment 1.9.5), as seen in the main documentation §28. Mockito offer a way to have a different bytecode engine, that dexmaker-mockito provide if it's on the same classpath. (Indeed the wiki is a bit outdated there but it states you need both jars).
Hope that helps.

bric3
- 40,072
- 9
- 91
- 111
-
So does that mean you **need** dexmaker (both jars) for mockito to work? – Ryan Jan 29 '13 at 13:00
-
@Ryan yes, that is what I meant. – bric3 Jan 29 '13 at 13:13
1
I got errors when I included both Mockito and DexMaker. In the end, this is what I added to gradle:
//compile 'org.mockito:mockito-all:1.9.5'
compile 'com.google.dexmaker:dexmaker:1.2'
compile 'com.google.dexmaker:dexmaker-mockito:1.2'

Tremelune
- 352
- 2
- 11