Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: How to determine whether a specific notification is sent?  (Read 6687 times)
spacetimer
Jr. Member
**
Posts: 10


View Profile Email
« 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.

Logged
Pages: [1]
Print