Daniel Harfleet

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

Posts Tagged ‘testing

.doAction( ) – How to mock a function in AsMock that returns void

leave a comment »

Using AsMock to mock a result being returned from a function is quite common, however, how would you mock behavior on a function which returns void ?

Read the rest of this entry »

Written by dharfleet

July 17, 2012 at 12:26

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.

Read the rest of this entry »

Written by dharfleet

November 5, 2010 at 11:29

Posted in Testing

Tagged with , , ,