Tom Sugden

MOST RECENT POST

EventfulTestCase: a FlexUnit extension for testing event dispatching

The events that a class dispatches form an important part of its contract with clients, yet for one reason or another they are seldom tested. Perhaps this is because event declarations are optional in Flex and specified as metadata, or perhaps it is because the FlexUnit assertions were mostly ported from JUnit and not tailored specifically to Flex. In either case, programming mistakes and design flaws in event logic can have far-reaching consequences, effecting any dependent event listeners and the classes beyond them.

Continue reading "EventfulTestCase: a FlexUnit extension for testing event dispatching"

Posted by tsugden at 10:28 PM | Comments (5)