问题描述
几个星期前我开始使用mockolate编写我的单元测试,直到现在它工作得很好。突然之间,昨天晚上,我开始在使用mockolate的每个测试中得到类似以下的错误:$ b $ pre $
VerifyError:Error# 1053:在asmock.generated.IContextMenuBuilder17E13646AD898E2616969BF920CF08CD49997F2F中非法覆盖IContextMenuBuilder17E13646AD898E2616969BF920CF08CD49997F2F。
在全局$ init()
在阅读中,看起来像这样错误通常是由于在不同版本的sdk上编译了不同的swfs / swcs,但是我的mockolate swc和我的源代码都是在相同的sdk版本上编译的,并且在相当长一段时间内没有改变。我甚至试图在我的项目中只包含mockolate作为源代码,并且只是将swcs作为lib路径包含在内。任何建议将不胜感激。
-Hob
在Flash Builder 4.7中使用 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()
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.
-Hob
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:非法覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!