Fame Craze News
general /

【How-to】What is mocking programming - Howto.org

Similarly, don’t mock value objects; there’s simply no reason to because they don’t have their own logic. Also avoid mocking concrete classes, because these trap you in a certain implementation of the class you’re mocking. In some cases, different types of “test doubles” similar to mocks are more appropriate instead.