也许现在问这个问题还为时过早,但正如今天宣布杰克和吉尔一样,我对此感到非常兴奋.我真的很想去,但他们也说:
Maybe is too soon to ask, but as Jack and Jill was announced today I get very excited with it. I really want to go for it, but they also state:
读取 .class 文件的各种工具(例如 JaCoCo、Mockito 和一些 lint 检查)目前与 Jack 编译器不兼容.
jack 编译器已经有一个 mockito 替代品了?
There is already an mockito alternative for jack compiler ?
Mockito 在编译时不会生成任何字节码,因此不受所使用的编译器的影响.dexmaker 也是如此.(他们在构建过程中没有任何挂钩到 Gradle)
Mockito doesn't generate any byte code at compile time and hence is not affected by the used compiler. Same holds true for dexmaker. (they don't have any hooks into Gradle during build)
因此,即使使用 Jack 编译器,您也可以继续使用 Mockito.请注意,我有一个 测试项目 可以证实这一点.
So you can simply continue to use Mockito, even with Jack compiler. Note that I have a test project which confirms this.
这篇关于Android Jack mockito 替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
如何检测 32 位 int 上的整数溢出?How can I detect integer overflow on 32 bits int?(如何检测 32 位 int 上的整数溢出?)
return 语句之前的局部变量,这有关系吗?Local variables before return statements, does it matter?(return 语句之前的局部变量,这有关系吗?)
如何将整数转换为整数?How to convert Integer to int?(如何将整数转换为整数?)
如何在给定范围内创建一个随机打乱数字的 intHow do I create an int array with randomly shuffled numbers in a given range(如何在给定范围内创建一个随机打乱数字的 int 数组)
java的行为不一致==Inconsistent behavior on java#39;s ==(java的行为不一致==)
为什么 Java 能够将 0xff000000 存储为 int?Why is Java able to store 0xff000000 as an int?(为什么 Java 能够将 0xff000000 存储为 int?)