How to @Spy a mocking dependency

1 · Sylhare · Oct. 14, 2021, midnight
Let’s say you are doing some refactoring. You have a big class that is doing too many things, and you want to carve a piece out into its own class doing its own thing. Following the responsibility pattern....