PureMVC Architects Lounge

Announcements and General Discussion => Fabrication => Topic started by: spacetimer on August 15, 2010, 05:33:25



Title: How to determine whether a specific notification is sent?
Post by: spacetimer on August 15, 2010, 05:33:25
Hi,
    Recently I've been looking into aproaches to unit testing fabrication flex applications. At many cases mediators send out notifications to react to events fired from its uicomponent and never care what happens next to the out going notification--weak coupling. And I also want my test code to be like this. For instance I only have to make sure that a specific notification is sent out after the button's click event is dispactched. Then I can focus on testing the commands that respond to it. Other wise I could only see piles of integration test code that stick the mvc all together...So is there a general approach? Can i find out the lastest notification sent in fabrication? Thank you very much.