3 ms·
Mock the dependencies in the constructor and test. Why are you talking about removing imports?
by _boffin_ 4y ago
Mock the dependencies in the constructor and test.
Why are you talking about removing imports?
- mrkeen 4y agoI do use constructors. I'm refuting the claim that my unit tests won't touch Spring. If my unit tests don't touch the Spring stuff in my class, either my unit tests on that class are woefully incomplete, or I didn't need the (explicit, directly-coupled) Spring stuff in my class.