|
|
|
|
|
by totallykvothe
165 days ago
|
|
Mockito allows one to write mocks in tests for code that doesn't use dependency injection and isn't properly testable in any other way. On the one hand, you should just design things to be testable from the start. On the other... I'm already working in this codebase with 20 years of legacy untestable design... |
|
Probably because they zealously followed "Effective Java" book.