Nature abhors a vacuum. It turns out she also abhors static dependencies (I have my sources). Static dependencies are the modern-day globals, often exposed through classes named "Helper". I've certainly been guilty of overusing static dependencies in the past, with classes like "LoggingHelper"...
Posted to
Jimmy Bogard
by
bogardj
on 05-06-2008
Filed under: Legacy Code, Refactoring, BDD, TDD, PabloTV
When dealing with legacy systems or those not designed with specific testability scenarios in mind, you have to test your changes in non-traditional means. In normal mocking (or test double ) scenarios, you have some kind of external dependency that you want to substitute for. For example, you might...