Chapter 13

Graphical User Interfaces

Readers who have gotten this far probably noticed that the “special cases” discussed in the second part of this book are nothing more than the same issue in recurring variations: the structure or interface design of a ready-to-use framework, a tool, or an API hampers the testing of the actual functionality.

Graphical user interfaces (GUIs) are no exception in this respect, because their implementation relies on the use of AWT or Swing, as well as additional components (e.g., Java2D). This situation is topped by an important aspect we already saw in connection with Web applications: A “good” user interface not only has to have clearly testable properties, it is also subject to unclear evaluation criteria, ...

Get Unit Testing in Java 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.