Refactoring the Unit Test
As an aside, we should mention that the DrawingPanel class was born out of a first attempt at a RubberbandTest applet, in the manner described below.
The object-oriented design process is an iterative one.[1] Classes are written, and as other classes are added to a system, insights are gained which often result in existing classes being refactored, meaning their implementations are modified to some degree according to a number of criteria. criterion. One of the mainstays of refactoring is to identify basic abstractions that can may be shared among a number of different classes in the midst of specialized pieces of functionality. When such code is identified, it is separated from the specialized code and packaged into ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access