flexRpcStubs 0.3 released

Brian LeGros | April 10th, 2010 | news, programming  

I’ve pushed out a couple new features and a bug fix for the flexRpcStubs project. Release 0.3 of the library is available for download on github. In terms of features, you can now filter HTTP calls by HTTP method as well as parameters and HTTP headers. Arguments provided to the result/fault method of HTTPServiceStub and RemoteObjectStub can now be of type literal, Class, Date, RegExp, or Hamcrest matcher rather than just literals and Hamcrest matchers; thanks to Drew for letting me steal the idea from Mockolate, my new favorite mock object framework for AS3. I also fixed a bug in RemoteObjectStub which was not dispatching events on the RemoteOperationStub; thanks to ropp for the fix.

If anyone has SDK classes they’d like to see stubs for, please let me know. I’ve been sent a draft of a ModuleLoaderStub and have a couple ideas for handling SWFLoader, so keep an eye out for more updates as I find time.

flexRpcStubs version 0.2 released

Brian LeGros | March 1st, 2010 | programming  

I burned the midnight oil tonight and was able to get release 0.2 of the flexRpcStubs project out on Github. In this release I’ve added the ability to add a rootCause to a fault on RemoteObjectStub, the ability to match parameters and headers on HTTPServiceStub, and the ability to use hamcrest-as3 matchers along with literals for both HTTPServiceStub and RemoteObjectStub. Additionally, I’ve thrown up some concise examples which, I hope, will help to show simple use cases using stubs in your unit tests. Here are links to the examples for HTTPServiceStub and RemoteObjectStub, just in case you don’t want to dig in. As always I look forward to feedback on the project. If you don’t want to build it yourself, I’ve thrown out a SWC for download on GitHub as well.