Archive for the ‘Testing’ Category
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 ?
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.
I’m really excited about the amount of good tooling that is coming out for Flex development at the moment, from the latest features in Flashbuilder 4, plugins such as Sourcemate, through to tools such as FlexPMD and the newest version of FlexUnit.
As a test infected developer, it’s great to see that an ActionScript code coverage plug-in for Flash Builder has been pre-released on Adobe Labs.