Mocking in Java: why mocking, why not mocking, mocking also those awful private static methods

Mocking in Java: Why, Why Not and Also Those Awful Private Static Methods

Unit tests: there are people out there surviving without, but in many cases you want to have this life insurance. Something to protect you from slipping an error, something to accompany your software also when you will have long forgotten it and someone else will have to figure out how to maintain that legacy thing. […]