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 ...

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.