This post is part of the “Legacy Code to Testable Code” series. In the series we’ll talk about making refactoring steps before writing tests for legacy code, and how they make our life easier. Adding accessors to private state data is an admission that either our design is wrong, or that we’re adding the accessors […]
from Java Code Geeks http://www.javacodegeeks.com/2014/10/legacy-code-to-testable-code-3-adding-setter-accessors.html
No comments:
Post a Comment