Daniel Harfleet

Delivering user-centric applications on the Adobe Flash Platform using Flex and AIR

Unit Testing code which is dependent on RemoteObject

leave a comment »

I spent some time yesterday trying to figure out how to mock the behaviour of RemoteObject using ASMock a mocking framework I like and use a lot. However, in the end I had to admit defeat and instead found this stubbing framework for the service classes within Flex SDK.

Flex RPC Stubs, allows you to stub out http and remote object RPC calls.

https://github.com/blegros/flexRpcStubs

RemoteObject example:

https://github.com/blegros/flexRpcStubs/tree/master/src/test/flex/mx/rpc/remoting/test/sample/

Advertisements

Written by dharfleet

November 5, 2010 at 11:29

Posted in Testing

Tagged with , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: