Tag: mockito

We all know that unit tests must not interact with external dependencies—databases, HTTP services, the filesystem, etc. You must resort to mocking those dependencies. This presents a problem: sometimes you have to mock code you didn’t write, presented in the form of static methods. In this post, you’ll learn how to deal with this challenge…