Mockito和Dexmaker项目的文档似乎没有清楚地说明两者之间的关系,它们只提到了彼此。如果需要Dexmaker,那么Mockito和Dexmaker的哪些版本是兼容的?是否只需要dexmaker mockito工件?
发布于 2013-01-29 19:02:23
您需要最新版本的mockito (目前为1.9.5),如主documentation §28中所示。Mockito提供了一种拥有不同字节码引擎的方法,即dexmaker mockito提供的方法,如果它位于相同的类路径上。(维基确实有点过时了,但它指出你需要这两个there )。
希望这能有所帮助。
发布于 2015-02-12 01:51:41
当我同时包含Mockito和DexMaker时,我得到了错误。最后,我在gradle中添加了以下内容:
//compile 'org.mockito:mockito-all:1.9.5'
compile 'com.google.dexmaker:dexmaker:1.2'
compile 'com.google.dexmaker:dexmaker-mockito:1.2'https://stackoverflow.com/questions/14579873
复制相似问题