incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Heidegger ...@leichtgewicht.at>
Subject Re: [RT] From Singletons to Unit-testable code
Date Wed, 08 Feb 2012 06:09:17 GMT
On 08/02/2012 15:02, Alex Harui wrote:
> One way is to define another set of mixins that get initialized before 
> the SystemManager starts registering singletons.
> In my whiteboard re-write, the Singletons will probably be defined in 
> some manifest, will only register just before first use, and there 
> will be an event to give you a definite chance to register replacements. 
That will not enable unit testing. In unit testing the "instances" have 
to be replaced before and after each unit to be tested.
In other words: A lot of times not just once at startup.

yours
Martin.

Mime
View raw message