尝试将AsMock模拟框架更新到v.1.0,并在AsUnit 4中使用它。但在运行时,在测试用例类中的RunWith("asmock.integration.asunit.ASMockRunner")元标签行获得一个VerifyError (1153,不可接受的覆盖)。我使用FlashDevelop作为集成开发环境。不知道是怎么回事。有人能帮上忙吗?
发布于 2010-11-30 18:24:02
您是否在Eclipse/Flash Developer中的Flex Compiler arguments字段中添加了includes行?
您需要包含
-includes asmock.integration.asunit.ASMockRunner
请参阅http://asmock.sourceforge.net/wiki/Installation
发布于 2011-05-21 23:02:59
AsUnit 4的支持是在它离开测试版之前添加的,所以看起来API已经改变了。我会查一查的。同时,我建议将此作为错误添加到asMock's bug tracker中。
https://stackoverflow.com/questions/4217051
复制相似问题