This work is licensed under a Creative Commons Attribution 4.0 International License by Gregor Riegler.
Layout: © 2020. MIT License.
I like to use Subclass to Test when i need to refactor first to isolate a proper Seam.
It helps break a hard dependency and get the legacy code under test.
This pattern is sometimes also called Test Specific Subclass.
The code on my GitHub