O'Reilly logo

Swing Extreme Testing by Tim Lavers, Lindsay Peters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Making Classes Testable with Interfaces

In the previous two chapters, we introduced specific programming and testing tools. In this chapter, we will be presenting a design pattern, namely, the appropriate use of Java interfaces. We will show how to apply this pattern to make small components or screens easy to test. We first look at how this applies in LabWizard, and then we will go into more detail by looking at an example that is given fully in the book source code.

The LabWizard Comment Editor

In the LabWizard Knowledge Builder, the main screen launches a Comment Manager which in turn launches a Comment Editor. Here is a view of the LabWizard Knowledge Builder application, showing a user in the process of editing one of the comments ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required