|
Ah, interesting. So reload() works more like clear or reset. Based just on method name (this illustrates why I think method names are so important) I had assumed it just reloaded the services immediately.
As far as testing, should be easy-ish:
-
build the ServiceRegistry containing the service in question
-
get reference to the service in question
-
stop the built ServiceRegistry
-
verify that the service "did its work"
|