Is there a way to use mocks or fakes in your unit tests without having 开发者_StackOverflow中文版to use dependency injection or inversion or control?
I want to define in my Spring XML conte开发者_C百科xt a bean that has a property of the type List of classes: i.e. List<Class<?>> classes
Consider a beginner dealing with Dependency Injection. We\'re analyzing two relevant classes in NerdDinner.
I was just reading up on inversion of control (IOC) and it bothered me that it seems like it makes memory management a pain. Of course开发者_开发百科 it seems ioc is mostly used in garbage collected e