O'Reilly logo

Test Driven: Practical TDD and Acceptance TDD for Java Developers by Lasse Koskela

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 8. Test-driving Swing

Design is not just what it looks like and feels like.

Design is how it works.

Steve Jobs

I have spent most of my programming career developing backend systems. That is, things without a face—a user interface. Such systems are easy to write automated tests for because there’s always some kind of a technical interface to automate. Things aren’t as straightforward when there’s a graphical user interface (GUI) involved, however. With GUIs, it’s not just about the behavior of the widgets laid out on the screen. It’s also about the GUI being easy to learn and use by a human being. It’s also about the GUI looking good.

In this chapter, we will explore test-driven development in the context of Java Swing development. ...

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