You shouldn't create an instance of the event map for a unit test.  There 
shouldn't be enough code in your event map to test.  It should just wire the 
rest of the app together.  The rest of the app shouldn't even know it is a mate 
app and so should be testable without any need for the event map.

--- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
<dorkiedorkfromdorkt...@...> wrote:
>
> Can anyone explain how to setup mate with a Flex Unit 4 test? For example,
> where do I create an instance of the event map?
> 
> I have
> 
> [Before]
> [After]
> [BeforeClass]
> [AfterClass]
> 
> methods
> 
> Would it be something like this:
> 
> public function setup():void {
>     var myMap:EventMap = new MainEventMap();
>     // something
> }
> 
> thanks
>


Reply via email to