开发者

FlexUnit 4 and Cairngorm commands

开发者 https://www.devze.com 2022-12-26 00:03 出处:网络
Does anyone know if it is possible to test remote proced开发者_StackOverflowure calls in Cairngorm Commands with FlexUnit 4. I have an old app full of them and before I introduce FlexUnit into the mix

Does anyone know if it is possible to test remote proced开发者_StackOverflowure calls in Cairngorm Commands with FlexUnit 4. I have an old app full of them and before I introduce FlexUnit into the mix would like to hear if anyone has been successful with this.

Many thanks,


It's pretty easy using asynchronous tests (as you've found the relevant doc) - as long as you can exchange the remote service with a mock service, e.g. by injecting a different service locator that returns mock services, or better by using a DI framework like Spring ActionScript or Parsley. In that case you will have a real unit test that is not depending on a running server.

0

精彩评论

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