Android Jack mockito alternative(Android Jack mockito 替代品)
问题描述
也许现在问这个问题还为时过早,但正如今天宣布杰克和吉尔一样,我对此感到非常兴奋.我真的很想去,但他们也说:
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 替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android Jack mockito 替代品


基础教程推荐
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01