Groovy Inversion Of Control & Unit Testing (IOC)

By adding IOC all objects are instantiated by Dependency Injection i.e. they are injected into each constructor by the IOC factory. So we can switch multiple implementations in without changing code. Formally: the code calling an object is not responsible for instantiating the object, so you would never use def blah = new Blah() 1.… Continue reading Groovy Inversion Of Control & Unit Testing (IOC)