How to integrate AsMock into AsUnit 4?

大城市里の小女人 提交于 2019-12-25 03:31:02

问题


Trying to update AsMock mocking framework to v.1.0, and use it with AsUnit 4. But in runtime get a VerifyError (1153, inacceptible override) at the line with [RunWith("asmock.integration.asunit.ASMockRunner")] metatag in the test case class. I use FlashDevelop as an IDE. Have no idea, what's wrong. Could anyone help?


回答1:


Have you added the includes line to the Flex Compiler arguments field within Eclipse/Flash Developer?

You need to include

-includes asmock.integration.asunit.ASMockRunner

see http://asmock.sourceforge.net/wiki/Installation




回答2:


AsUnit 4 support was added before it left beta, so it looks like the APIs have changed. I'll have a look into it. In the meantime, I'd recommend adding this as a bug to asMock's bug tracker.



来源:https://stackoverflow.com/questions/4217051/how-to-integrate-asmock-into-asunit-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!