问题描述
几周前我开始使用 mockolate 来编写我的单元测试,直到现在它运行良好.突然之间,昨晚,我开始在每个使用 mockolate 的测试中收到如下错误:
I started using mockolate to write my unit tests a few weeks back, and up 'till now it's worked great. All of a sudden, last night, I started getting errors like the following on every test that uses mockolate:
VerifyError: Error #1053: Illegal override of IContextMenuBuilder17E13646AD898E2616969BF920CF08CD49997F2F in asmock.generated.IContextMenuBuilder17E13646AD898E2616969BF920CF08CD49997F2F.
at global$init()
在阅读中,似乎这个错误通常是由于在不同版本的 sdk 上编译了不同的 swfs/swcs,但是我的 mockolate swc 和我的源代码都是在相同的 sdk 版本上编译的,而这并没有好一阵子都变了.我什至尝试在我的项目中只包含 mockolate 作为源,并且只包含它的 swcs 作为 lib 路径.任何建议将不胜感激.
In reading, it seems like this error is typically due to different swfs/swcs being compiled on different versions of the sdk, but both my mockolate swc and my source are being compiled on the same sdk version, and that hasn't changed in quite a while. I've even tried just including mockolate as a source in my project, and just including it's swcs as lib paths. Any suggestions would be greatly appreciated.
-滚刀
推荐答案
我在 Flash Builder 4.7 中使用 mockolate
时收到了类似的错误.对我有用的是对我的项目进行清理.之后,我重新运行了测试,没有出现任何问题.
I received a similar error when using mockolate
from within Flash Builder 4.7. What worked for me was to do a clean on my project. After that, I re-ran my tests and had no problems.
这篇关于Mockolate:突然得到VerifyError:非法覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!