开发者

How to integrate AsMock into AsUnit 4?

开发者 https://www.devze.com 2023-01-25 23:40 出处:网络
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.integra开发者_JS百科tion

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.integra开发者_JS百科tion.asunit.ASMockRunner")] metatag in the test case class. I use FlashDevelop as an IDE. Have no idea, what's wrong. Could anyone help?


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消