Closed GoogleCodeExporter closed 8 years ago
Your injection maybe be too complex for Mockito. Mockito is not a full featured
dependency injection framework, it merely minimize work for simple and
boilerplate DI code. And it doesn't intend to.
Your case shows a complex code to set up that seems to go beyond what should be
done in a Unit Test, either that's a sign that either the production code or
the test code needs to be redesigned in order to gain a better testability.
So we won't update the mockito injection code to support deep injection graph.
Cheers
Brice
Original comment by brice.du...@gmail.com
on 4 Dec 2013 at 1:45
Original issue reported on code.google.com by
jag...@gmail.com
on 11 Sep 2013 at 7:36