-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lambada调用mock不生效 #36
Comments
只能mock Function了? |
目前确实还不支持。 原理上TestableMock是在测试运行时对“方法调用”进行扫描和Mock替换,通过 方法引用 或者 函数式接口 进行调用时候,调用语句实际是比如 类似的情况还有,下面这个语句里的
但换成下面这种引用的方式就会Mock失败:
理论上能适配,这个问题我先标记一个改进项。 |
@linfan 追问一下这个问题的进度,谢谢 |
目前还没开始处理,尽量在 |
@linfan 更新到了0.6.5,被测类实例创建时 |
@VicDelacroix 如果OmniConstructor创建的对象可用,可能与一处已知BUG有关,已录为issue-163,计划在0.7版本修复 |
|
@zcbbpo 单个单元测试是可以通过,但是执行整体的测试 lambda 的单测则不通过 |
被测类:
test:
The text was updated successfully, but these errors were encountered: