My FITC Boston 2011 Schedule – Want To Trade Notes?

FITC Boston, 2011 is coming up quickly and I am finding that there are some sessions that I am interested in that are being presented in the same time slot. I am planning on doing some post-conference articles here on the sessions that I am attending. If you would be interested in “Teaming Up” on sharing notes, links, and other insights on sessions then be sure to add a comment below with a link to where your post-session write-ups may be found.

Continue reading My FITC Boston 2011 Schedule – Want To Trade Notes?

Testing a Model Robotlegs EventDispatcher In FlexUnit

First off, what makes a model a Robotlegs model? There is a base class in Robotlegs which is called Actor. By extending Actor, generally used in models and services in Robotlegs applications, we are able to access a property of Actor which is named eventDispatcher. EventDispatcher is shared throughout the Robotlegs framework, thusly, any events dispatched upon the eventDispatcher may be heard across the entire application.

Continue reading Testing a Model Robotlegs EventDispatcher In FlexUnit

Stubbing a Command Dependency With Mockolate and FlexUnit

In Test Driven Development (TDD) and Unit Testing, it is often necessary to provide the Class Under Test (CUT) with a stub of a class for which it has a dependency. For instance, this example illustrates a command class that injects a model. In order to run a test against the execute method of the CUT we need to ensure that the model and related model properties exist for the CUT in order to assert against the command’s execute method.

Continue reading Stubbing a Command Dependency With Mockolate and FlexUnit