Im trying to understand how all things are related with Spring. However I do not understand why mockito is used when unit testing spring code? Can not spring handle to same DI that mockito does? What is it that mockito contributes that is not possible to do with pure spring?
Clarification: My thinking goes that I can just use a different application context for testing where I create the stub beans I need as dummy objects.