MockRemoteObject

When developing a business Flex application, you may sooner or later want to decouple the Flex side from the server side for (unit)testing purposes. With Cairngorm and PureMVC projects, i often see mock Delegates or Proxies appear (and some kind of injection). What i do most of the time is write the service implementation as an Interface and mock there instead of in the Proxy (PureMVC) or mock the ServiceLocator (Cairngorm) by using (in the case of Remoting) MockRemoteObjects.

FlexUnit Example [ source | documentation | library ]

Cairngorm Example [ source ]


About this entry